Closed ghost closed 8 years ago
@SkateFreak you can also use the getRoutes
param key instead of routes
. So change it to:
import getRoutes from './routes';
`reduxReactRouter({ getRoutes, createHistory: createMemoryHistory })`
Assuming your second js snippet is in the file routes.js
thats my server matching and rendering (from the official server-rendering example):
any my routes looks like this:
i would like to get my markup rendered-to-string after the
getUserData
dispatch is back with data. it works on the client, but i don't know what to pass to 'routes' inreduxReactRouter({ routes, createHistory: createMemoryHistory })
...