Minimal & Modern Boilerplate for building apps with React & styled-components
- Easier and less complex than create-react-app
- Features styled-components
- Uses React Hooks
- Includes optimized Webpack & Babel configuration
- Perfect Lighthouse score
- Non-blocking CSS & fonts loading
- Friendly errors & warnings
- Ensures clean code with xo & stylelint
- Normalizes default browser style with modern-normalize
- HTML template with social media meta tags
- Targets the latest browsers
- Works offline
- Preconfigured hot reloading using react-hot-loader
βββ public # Folder with HTML template & favicon
β βββ favicon.png # Example favicon
β βββ index.html # HTML template
βββ src # Main folder with index.js & components
β βββ components # Subfolder with components
β β βββ button.js # Example component 1
β β βββ container.js # Example component 2
β β βββ counter.js # Example component 3
β β βββ header.js # Example component 4
β βββ app.js # Main page file
β βββ index.js # React DOM rendering options
βββ .npmrc # npm config
βββ .stylelintrc # stylelint config
βββ .travis.yml # Travis CI config
βββ package.json # Package config with scripts, list of dependencies etc.
βββ webpack.config.js # Webpack config
βββ babel.config.js # Babel config
# Install dependencies
$ npm install
# Start webpack-dev-server at port 8080
$ npm start
# Run linters
$ npm test
# Build app for production (gets output in the 'dist' directory)
$ npm run build
I recommend to use either Zeit Now or Netlify for hosting your site.
- PWA
- module & nomodule support
- Testing
MIT