Comments (4)
You don't need to use it for your server side rendering. Just render it using regular old react-router on the server side and redux-react.
You'll end up having something to the effect of this inside your match
callback
<Provider store={store}>
<RoutingContext {...renderProps} />
</Provider>
from react-router-redux.
same here #33
from react-router-redux.
I get it work @crossman
you can see my example app working https://github.com/eriknyk/redux-universal-app/
from react-router-redux.
Indeed. This project is not intended to document or take over routing at all, it's only meant to make sure the route state (the URL) is synced with the redux store so you can always recreate your app based on that state. All functionality (especially advanced stuff like server-side rendering) should just go through react-router.
I am going to document this somehow though. A few basic examples + links for where to look at react-router's docs would be nice.
Keep an eye on https://github.com/erikras/react-redux-universal-hot-example, we're going to switch it to this project soon and you can see server-rendering code there.
from react-router-redux.
Related Issues (20)
- with react-router 4.X and react-router-redux 5.0, the devTools can not replay different path HOT 3
- Expose defaultSelectLocationState HOT 2
- Action name HOT 2
- about goBack and go(-1) HOT 1
- Error: Element type is invalid: expected a string HOT 1
- example change url but not component HOT 1
- why browserHistory not working?
- Why there is no action creator for LOCATION_CHANGE? HOT 2
- routes not working properly HOT 1
- how to use hashRouter in react-router-redux HOT 1
- push() replaces url HOT 4
- History with other sites. HOT 1
- basename not working on react-router-redux 5.0.0-alpha.9 HOT 1
- Where is `this.props.location` and `this.props.history` in react-router-redux? HOT 1
- How does `selectLocationState` work? Give examples HOT 3
- LOCATION_CHANGE is wrong action type HOT 1
- How to preserve router in ownProps? HOT 1
- -router
- Ability to modify 'location' with my own reducer? HOT 1
- The readme section "We're moving" is misleading. The "new" location says *Project Deprecated* HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-router-redux.