React 16+ Bootstrap webpack 4 with Hot Reload STARTER
ReactJS + Bootstrap starter with hot reload
Full client and server side in ES6+-ES2015+
Concept behind: this starter is an easy way to understand and ready to use ReactJS (ES6) + bootstrap + webpack starter with:
no hard core Webpackconfig 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...).
Looking for server side rendering? check this project with SSR added here
Breaking changes since v6.0.0
- upgrade to
React 16.3.x - upgrade to
webpack 4 - upgrade to
react-hot-loader v4 - drop
CSS Modulein favor ofstyled-components(scoped style, theme support, better scaling in huge applications, simplify toolchain and keep nearly SASS syntax) - add
flow types(even a little typing at least for better dev experience) - drop
prop-types(static and dynamic typing apart, flow type does far more so avoid writing 2 differents typing system) workbox-webpack-plugin(service worker caching powerful tool from Google)- loadable-components (split your code: here splitted just by routes, by you can split a component level if you feel the need)
webpack-bundle-analyzer: analyze your bundle size (maybe you should split or lazy load some part of your application: you will see clearly how to fix that)- drop
momentfordate-fns(since far smaller size and job's done)
Breaking changes since v5.0.0
- upgrade to React 16.x
react-router 4+(read this nice article about migrating from react-router 3 to react-router 4)- add few flow types (still keep propTypes)
- updated hot reload (read hot reload starter)
- use
CSS module(keep coding style with SASS but get benefit of css module for a more peasant coding)
HUGE Breaking changes since 3.0.0
- upgrade to
React 15.6.x - upgrade to
webpack v3 - add
JWT authentication(protected route, logout components...)
HUGE Breaking changes since 2.1.0
- upgrade to
react-router v4
HUGE Breaking changes since 2.0.0
- upgrade to
webpack 2 - remove autoprefixer in favor of
postcssandcssnext - upgrade
Reactto15.5.4+ PropTypescomes now fromprop-types- upgrade dependencies
If you prefer a
webpack 1version, version 1.1.0 is what you are looking for.
Detailed Content
Front:
- React JS (16.3.x - github
π ) - react-router (4.x- github
π ) - Bootstrap (3.x - github
π ) - React-Bootstrap (github
π ) - font-awesome (github
π ) - animate.css (github
π ) - classnames (github
π ) - react-motion (github
π ) - Webpack 3.x (github
π ) - babel 6+ (github
π ) - axios (github
π Why: simple, complete, isomorphic ...)
Tool chain:
- babel 6+
- eslint
- hot reload
- loaders
js/jsx- css
- json
- images formats
- svg and fonts formats
tests:
- Jest
- enzyme
Usage
Install
npm installor
yarn installbundle dev mode
npm run devdev : hot reload mode
npm run starttests
npm run testbundle production mode
npm run prodmini node-express server
with server hot reload (and dev bundle):
npm run serve-devwithout hot reload (and prod bundle):
npm run serve-prodLicense
The MIT License (MIT)
Copyright (c) 2018 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.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

