Duplicant
Duplicant is a bare-bones generator for creating React-powered SPAs hosted by simple Express servers. These generated projects include the conveniences of contemporary JavaScript, code splitting, streamed SSR, and HMR (for both the client and server).
In JavaScript, no one can hear
this
scream...
Installation
npm install -g duplicant
Getting started
duplicant my-projectcd my-projectnpm start
You are now ready to start building with:
react
react-dom
react-router-dom
styled-components
Some key things to review before you get too far down the rabbit hole:
- Review the available scripts in the
package.json
file common/chunks.js
andcommon/client-chunks.js
will show you how to create code-split components- You can split on any component, not just pages!
common/routes.js
will show you how these split components are used