f4405ac0f0
- d3-state-visualizer@1.3.4 - devui@1.0.0-6 - react-base16-styling@0.8.0 - react-dock@0.3.0 - react-json-tree@0.13.0 - redux-devtools-chart-monitor@1.7.2 - redux-devtools-cli@1.0.0-4 - redux-devtools-core@1.0.0-4 - redux-devtools-dock-monitor@1.2.0 - redux-devtools-inspector@0.14.0 - redux-devtools-instrument@1.10.0 - redux-devtools-log-monitor@2.1.0 - redux-devtools-serialize@0.2.0 - redux-devtools-slider-monitor@2.0.0-5 - redux-devtools-test-generator@0.6.2 - redux-devtools-trace-monitor@0.1.3 - redux-devtools@3.7.0 - d3-state-visualizer-tree-example@0.0.2 - react-json-tree-example@1.1.0 - slider-todomvc@0.0.2 - counter-redux@0.1.0 - todomvc@0.1.0 |
||
---|---|---|
.. | ||
src | ||
.babelrc | ||
.eslintrc.js | ||
CHANGELOG.md | ||
index.html | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json | ||
tsconfig.webpack.json | ||
webpack.config.ts |
react-hot-boilerplate
The minimal dev environment to enable live-editing React components.
Usage
npm install
npm start
open http://localhost:3000
Now edit src/App.js
.
Your changes will appear without reloading the browser like in this video.
Linting
This boilerplate project includes React-friendly ESLint configuration.
npm run lint
Using 0.0.0.0
as Host
You may want to change the host in server.js
and webpack.config.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.
Missing Features
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.
Dependencies
- React
- Webpack
- webpack-dev-server
- babel-loader
- react-hot-loader
Resources
- Demo video
- react-hot-loader on Github
- Integrating JSX live reload into your workflow
- Troubleshooting guide
- Ping dan_abramov on Twitter or #reactjs IRC