A starter project with React, Babel, and Webpack.
This starter is as minimal as possible while still including Babel and Webpack.
npm install
-
node server.js
-
Open http://localhost:3000/.
- No CSS. For experiments or tests, put your styles in
index.html
in a<style>
tag. For real projects, pick from these style tools. - No Flux. If you need it - try Redux or MobX!
- Webpack is run with the
express
andwebpack-dev-middleware
. - The 'content base' is set to
www
. Any files in that directory will be served by express.
HMR is not supported in the master branch for simplicity. If you would like HMR support, you can see the changes that add HMR support or you can directly clone the HMR branch:
git clone -b hmr git@github.com:ahfarmer/minimal-react-starter.git