This project use Realword API and Next.js.
Realworld API is The mother of all demo apps
they said.
Next.js is React Framework. If you need SSR(Server Side Rendering), Next.js is so easy to set SSR.
Next.js has some PROS.
-
Provide Server Side Rendering(SSR) by default.
-
Automatic code spliting.
-
Easy client routing.
- Next.js has
link/next
- Next.js has
-
Support Hot Module Replacement.
-
Use Next.js with node.js.
-
Cutomizable Babel and Webpack.
-
next
: React with Server Side Rendering. -
react, react-dom
-
styled-components
-
babel-plugin-styled-components
: Support styled-components with Nextjs. -
and create .babelrc in root path.
{ "presets": ["next/babel"], "plugins": [["styled-components", { "ssr": true }]] }
-
ref: https://github.com/zeit/next.js/tree/master/examples/with-styled-components
-
-
eslint
-
eslint-config-airbnb
-
eslint-plugin-babel, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-react
-
scripts: {
"dev": "next",
"build": "next build",
"start": "next start"
}
ref: https://github.com/zeit/next.js/tree/canary/examples/with-styled-components
npm install styled-components
Note🚨
Create _app.js and _document.js files to use styled-components with SSR.
ref: https://github.com/zeit/next-plugins/tree/master/packages/next-css
npm install --save @zeit/next-css
Note🚨
Css files cannot be import _documnet.js
.
ref: https://github.com/zeit/next.js/tree/canary/examples/with-redux-saga
npm install redux redux-saga react-redux next-redux-saga next-redux-wrapper redux-devtools-extension
MIT