Opinionated React boilerplate with Next.js and styled-components.
Handle all these buzzwords without you making a decision:
- Server-side rendering
- Routing library
- Styling library
- Code bundling and transpiling
- Hot reloading
- Code splitting
- ES6(+), ES2015(+) support
So you can focus on writting modern and production ready web app.
- Next.js v2.4
- React v15.6
- Styled-components v2.1
- Babel stage-2 preset
- Configuration abstraction.
- Server-side rendering, code splitting, bundling assets.
- Clean, matured and most popular styling library for React components.
- Support server-side rendering.
- Safe enough and cover all widely-used ES6+ features.
In your command line tool
- Clone this repo:
git clone https://github.com/khanglu/opinionated.js
- Install and run
npm install
npm run dev
A dev server will be served at http://localhost:3000
- Put pages/routes components in
pages
folder. - Put react components in
components
folder. - Put static assets in
static
folder.