Answer the question
In order to leave comments, you need to log in
How to add path to IndexRoute?
IndexRoute
is set in the application , after all the checks it translates to '#/' and the "App" component, however, it is necessary that the url draw the address of the component too, that we immediately got to the address '#/app' when entering '#/'
All , what I'm doing breaks IndexRoute , I can't stick it in any way, how to finish the url when I first enter the application
<Provider store={ store }>
<Router history={ history }>
<Route path={INDEX_ROUTE} component={Container}>
<IndexRoute component={App} />
<Route path={APP_ROUTE} component={App} />
<Route path={NEXT_ROUTE} component={Next} />
</Route>
</Router>
</Provider>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question