React-Redux server side rendering (SSR) example.
Server is Express(node.js).
- download
- npm install
- npm run dev
- browse http://localhost:8080/
- react
- react-redux
- react-router-redux
- css-loader
- isomorphic-fetch
- webpack
- etc...
{
"presets": ["react", "es2015", "stage-0"]
}
When npm run dev or npm run build, create this files.
.
├── dist/
│ └── server.js
└── public/
├── bundle.js
└── styles.css
If you access http://localhost:8080/detail direct, meta.title is Detail Container fetchData.
http://localhost:8080/detail access by any other, meta.title is Detail Components.
componentWillMount is not called twice.(on server html, on browser js)