This starter-kyt
should serve as the base for an advanced client-rendered React app.
$ yarn add kyt
$ yarn kyt setup
Select static
from the list of starter-kyt
s
The following are some of the tools included in this starter-kyt
:
- React - Component library
- React Router - Server and client routing
- Pretty Lights - CSS-in-JS with a reliable API
- React Testing Library - React component testing
- html webpack plugin - Builds a static html file
-
You will find a
src/index.ejs
file which gets compiled to an html file by the html webpack plugin. See more for configuration in the kyt.config.js. After a build, kyt will copy the html build intobuild/public
. -
Assets from
src/public
are accessible from/
in bothdev
and production (build
). -
Note, if your site uses routes,
dev
is configured with the history api fallback to support routing. In production (after abuild
), you will need to setup an edge/server, like nginx or Varnish, to forward routed requests to yourbuild/index.html
.
Want to build your own starter-kyt
?
See directions here.