Skip to content
ReactJS 16.4 + new React Context API +react Router 4 + webpack 4 + babel 7+ hot Reload + Bootstrap 4 + styled-components
Branch: master
Clone or download
Latest commit 6cdf31b Feb 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode extract css and vendors from bundle May 18, 2017
assets update README and add CHANGELOG Sep 15, 2018
docs bundle Jan 8, 2019
flow-typed migration May 4, 2018
preview update README Nov 19, 2018
scripts reactstrap - bootstrap 4 migration Jun 17, 2018
src trying fix static SSR Dec 29, 2018
typings fixed dev bundle Aug 10, 2018
.babelrc
.editorconfig upgrade to React 16 Nov 3, 2017
.eslintrc.json upgrade React and toolchain (mostly babel) Nov 20, 2018
.flowconfig webpack 2 and dep. upgrade May 25, 2017
.gitignore
.nvmrc
.prettierignore migration May 3, 2018
.prettierrc
.travis.yml fix jest May 10, 2018
CHANGELOG.md
README.md Update README.md Feb 3, 2019
jsconfig.json
nodemon.json migration May 4, 2018
package.json
typings.json fixed dev bundle Aug 10, 2018
webpack.analyze.config.js dropping loadable-component for React.lazy Nov 21, 2018
webpack.dev.config.js dropping loadable-component for React.lazy Nov 21, 2018
webpack.hot.reload.config.js
webpack.production.config.js
yarn.lock bundle Jan 8, 2019

README.md

React 16+ Bootstrap webpack 4 Babel 7 with Hot Reload STARTER

npm Build Status Coverage Status FOSSA Status

ReactJS + Bootstrap starter with hot reload

Full client and server side in ES6+-ES2015+ using only React 16.3 Context API for state management.

Dev bundle connects context to redux devTools (yes you are not dreaming) to feel redux development experience in a pure Context API app. Contrary to a redux based app connecting to devTools is not automatic (you have to specify each pseudo-action you want to trace in devTools state).

Concept behind: this starter is an easy way to understand and ready to use ReactJS (ES6) + bootstrap + webpack starter with:

  • no hard core Webpack config so it is more commonly understandable (they are numerous amazing starters with incredible webpack configs — hard core configs aren't bad things at all! —. This one is just for easier understanding for people even discovering webpack)
  • with hot reload (ReactJS + webpack => hot reload = WINNER)
  • no flux (yes, to give you freedom to add then since you may want to use something else like observables?)
  • with JWT auth
  • ReactJS Components written with optimization tricks (stateless, pure render...).

preview

Looking for server side rendering? check this project with SSR added here

Detailed Content

Front:

Tool chain:

  • babel 7+
  • eslint
  • hot reload
  • loaders
    • js / jsx
    • css
    • json
    • images formats
    • svg and fonts formats

tests:

  • Jest
  • enzyme

Usage

Install

npm install

or

yarn install

bundle dev mode

npm run dev

dev : hot reload mode

npm run start

bundle size analyze

npm run analyze

tests

npm run test

bundle production mode

npm run prod

mini node-express server

with server hot reload (and dev bundle):

npm run serve-dev

without hot reload (and prod bundle):

npm run serve-prod

Donate

Do you use & ❤️ react-material-ui-next-starter but you don’t find a way to show some love? If yes, please consider donating to support this project. Otherwise, no worries, regardless of whether there is support or not, I will keep maintaining this project. Still, if you buy me a cup of coffee I would be more than happy though 😄

Support via PayPal

License

The MIT License (MIT)

Copyright (c) 2019 Erwan DATIN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FOSSA Status

You can’t perform that action at this time.