Last active
August 29, 2015 14:27
-
-
Save tomchentw/985bd04b22c980fb964b to your computer and use it in GitHub Desktop.
Redux-Universal - Code Sections - 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://git.io/v3Im3 | |
| // at this point, we’re safely to call `renderToString` since all our data are loaded and exists in Redux store | |
| const markup = React.renderToString( | |
| <Provider store={store}> | |
| {() => <Router {...routerState}/>} | |
| </Provider> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment