A boilerplate to start a client-side project using React.
- Webpack
- webpack-dev-server with HMR support
- webpack-notifier
- Babel 6 with presets for:
- ES2015 using babel-preset-es2015
- React using babel-preset-react
- React HMR and error catching using babel-preset-react-hmre
- ESLint configured to:
- use Babel 6 as parser using babel-eslint
- lint page on save using eslint-loader
As you can see the HMR is working without reloading the page for React components and styles.
$ git clone https://github.com/rbartoli/react-boilerplate.git
$ npm i
$ npm start