Ready to use boilerplate to speed up development of react app from scratch!
Boilerplate in this branch is for multi page component kind of apps.
If you want to get boilerplate without react-router, please checkout branch without-router
.
- Using
Babel7
andtypescript
to use latestecma
features react v16.8.3
included- Supports
code-splitting
orlazy-loading components
by usingReact.lazy
andReact.Suspense
- Configured with
mobx
, no more bunch of code writing in redux or something - Configured
react-router
for routing support - Themed with beautiful
material-ui
! - Included rich icon library
Webpack
configuration ready for production- i18n setup
- Testing with
jest
(this can be improved for snapshot testing) - Included small demo of counter
Note: Test cases are failing after added support for code-splitting
because enzyme
does not support React.lazy
yet. It will be updated as soon as there will be some update from enzyme.
Clone this repo
npm install
- Start dev server:
npm start
- Run tests:
npm test
- Lint and type check:
npm run lint
- Build:
npm run build
(this will lint before build!)
Feel free to contribute if you like it and you think there is scope of improvement.
Fork this repo and make PR!