react-router-v4-redux-ssr
react-router-v4-redux-ssr copied to clipboard
The router does not respond
const compnent = (
<App context={context}>
<Provider store={store}>
<ConnectedRouter history={history}>
{renderRoutes(routes, { ...data })}
</ConnectedRouter>
</Provider>
</App>
);
I used part of the pattern react-starter-kit, and I only have the first route in Swith
<Switch>
<Route parth="/" component={Home} location={this.props.location} />
<Route
parth="/login"
component={Login}
location={this.props.location}
/>
</Switch>