Skip to content

The router does not respond #5

@GothicWay

Description

@GothicWay
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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions