wpbase.com
  • JavaScript 88.3%
  • HTML 11.7%
Find a file
Dan Abramov 3883f8ac71 Merge pull request #35 from gaearon/remove-no-errors-plugin-again
Don't use NoErrorsPlugin anymore
2015-08-28 23:47:39 +03:00
src Change folder names to be less confusing 2015-05-29 20:41:52 +03:00
.babelrc Update Babel 2015-04-21 23:55:22 +03:00
.eslintrc Update linting and include eslint-react-plugin 2015-05-29 20:31:06 +03:00
.gitignore And that is all there is to it 2014-08-23 20:53:44 +04:00
.jshintrc And that is all there is to it 2014-08-23 20:53:44 +04:00
index.html Moving script tag inside body 2015-07-11 20:30:17 +05:30
LICENSE Initial commit 2014-08-23 20:38:10 +04:00
package.json Don't use NoErrorsPlugin anymore 2015-08-28 23:46:11 +03:00
README.md Add troubleshooting guide to README 2015-07-15 01:04:54 -07:00
server.js Add historyApiFallback so it works with router out of the box 2015-02-20 20:21:49 +03:00
webpack.config.js Don't use NoErrorsPlugin anymore 2015-08-28 23:46:11 +03:00

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

Resources