cereallarceny / cra-ssr

[DEPRECATED] Server-side rendering with create-react-app, React Router v4, Helmet, Redux, and Thunk
484 stars 118 forks source link

How is 'router' being assigned to the state? #66

Open baj84 opened 4 years ago

baj84 commented 4 years ago

As per the connected-react-router documentation, you must assign the router to the state, like so const createRootReducer = (history) => combineReducers({ router: connectRouter(history), ... // rest of your reducers })

I can't see where this is being done in your code, but router is still assigned to the state. Where does this happen?

Thanks.