just another react + webpack boilerplate
It contains just the necessary to get started with React, I decided to not include flux libraries or other complicated stuff like server-rendering in here.
This projects aims to be a starting point for your React projects, and a way to learn it for newcomers.
See a working demo
- webpack and webpack-dev-server setup for development (with hot-module-replacement), and for production (with sourcemaps generation for both css and js bundles)
- clear separation between smart and dumb components
- styles for dumb components directly loaded from inside the component file
- basic routing setup with react-router (you most likely need routing in your app)
- code written is ES6 syntax and transpiled with babeljs
- unit tests (mocha + chai) examples with both shallow-rendering and jsdom
- code coverage generation using istanbul
- eslint and jscs configuration
Clone this repository
git clone https://github.com/vesparny/react-kickstart.git
Start the application in dev mode with hot-module-replacement
npm start
Run tests
npm test
Build for production (/dist/
folder)
npm run build
Run jscs and eslint
npm run jscs
npm run eslint
Generate code coverage report (/coverage/
folder)
npm run test:cov
PR and issues reporting are always welcome :)
See LICENSE file
See CHANGELOG.md file
- react-starterify by @granze
- smart and dumb components article by @gaearon