How in the world does one use nested routes in react-router, specifically, version 4.x? The following worked well in previous versions...
<Route path='/stuff' component={Stuff}>
<Route path='/stuff/a' component={StuffA} />
</Route>
Upgrading to 4.x throws the following warning...
Warning: You should not use <Route> component and <Route children> in the same route; <Route children> will be ignored
What in the heck is going on here? I've scoured the docs for hours and can not successfully get nested routes working. How does one use <Route>
components to nest their routes in react-router v4? How does my simplistic example translate to v4.x API compliance to nest a route?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…