react-router-v4-redux-ssr icon indicating copy to clipboard operation
react-router-v4-redux-ssr copied to clipboard

The router does not respond

Open GothicWay opened this issue 7 years ago • 0 comments

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>

GothicWay avatar Jul 11 '18 12:07 GothicWay