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
Babel7andtypescriptto use latestecmafeatures react v16.8.3included- Supports
code-splittingorlazy-loading componentsby usingReact.lazyandReact.Suspense - Configured with
mobx, no more bunch of code writing in redux or something - Configured
react-routerfor routing support - Themed with beautiful
material-ui! - Included rich icon library
Webpackconfiguration 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!