Skip to content

Instantly share code, notes, and snippets.

@tomchentw
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save tomchentw/985bd04b22c980fb964b to your computer and use it in GitHub Desktop.

Select an option

Save tomchentw/985bd04b22c980fb964b to your computer and use it in GitHub Desktop.
Redux-Universal - Code Sections - 5
// 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