V
V
Vecejlo2017-01-18 12:04:22
JavaScript
Vecejlo, 2017-01-18 12:04:22

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

1 answer(s)
A
Alexander Belov, 2017-01-18
@AlexanderBelov

Match exactly should help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question