react-isomorphic-example.k-3soft.com
- react-isomorphic-tools@^2.3.5
- react-router@^4.1.1
- react-router-dom@^4.1.1
- react-router-config@^1.0.0-beta.3
- react-router-redux@^5.0.0-alpha.6
- react-hot-loader@^3
- styled-components@^2.0.0
- react-helmet@^5.0.3
- react-intl@^2.3.0
- webpack@^3.5.5
- jest@^20.0.4
- enzyme@^2.9.1
- expressjs@^4.15.4
- Preload data before transition
- Preload data for ServerSide
- Chunks implements through async func, and will run when transition is doing to that route
- Handler of errors both client and server
import App from '../components/App'
const routes = [
{
component: App,
path: '/',
routes:[
{
path: '/home',
getComponent: ()=>import('../components/Home') //returns promise,
preload:({fetcher})=>{
return fetcher('/testApiData', { //return promise
method: 'GET',
params:{
id: 1
}
})
}
}
]
}
]