I am new in reactJs, i was trying to do nested route for one component and it's not working following way i was trying to do nested and error occur like this
Warning: You should not use and in the same route; will be ignored
render(
<Provider store={store}>
<ConnectedRouter history={history}>
<div>
<Route exact path="/" component={App} />
<Route exact path="/test" component={App}/>
<Route path="/register" component={Registration}>
<Route path="/register/pet/more" component={App}/>
</Route>
</div>
</ConnectedRouter>
</Provider>,
document.getElementById('root'))
So what should i have to do for nested route for one component. Thanks