Its build on top of gaearon react-hot-boilerplate,
Redux, Typescript and codespliting added.
npm run load
npm start
open http://localhost:3000
Now edit src/App.js
.
Your changes will appear without reloading the browser like in this video.
You may want to change the host in devServer.js
and webpack.config.dev.old.js
from localhost
to 0.0.0.0
to allow access from same WiFi network. This is not enabled by default because it is reported to cause problems on Windows. This may also be useful if you're using a VM.
This boilerplate is purposefully simple to show the minimal configuration for React Hot Loader. For a real project, you'll want to add a separate config for production with hot reloading disabled and minification enabled. You'll also want to add a router, styles and maybe combine dev server with an existing server. This is out of scope of this boilerplate, but you may want to look into other starter kits.
- React
- Webpack
- webpack-dev-server
- babel-loader
- react-hot-loader
- Redux
- Typescript
- Typings
- Demo video
- react-hot-loader on Github
- Integrating JSX live reload into your workflow
- Troubleshooting guide
- Ping dan_abramov on Twitter or #reactjs IRC