I extracted this from my commercial projects so I can reuse it for new ones. I don't use create-react-app because I inevitably need to eject and support a snowflake case. This project uses Webpack 4 which has great defaults and I've configured hot reloading for you.
It's barebones and has few opinions:
I can start making anything with this immediately and hope you can too. It's easy to swap out Ant Design if that's not your cup of tea.
For some projects I need to distribute a desktop app. Electron is perfect for this requirement. If you don't need it you can easily remove it.
- Delete src/main.ts, src/renderer.ts
- Delete the
dev:renderer
script in package.json - Update other scripts in package.json to match the language of a typical React app
Install all the dependencies
$ npm install
Run the script to watch and build your app files
$ npm run dev:renderer
If building an Electron app, run this script to load your app inside of it
$ npm run dev:main
TODO