How to implement nested Routing (child routes) in react router v4?
问题 The component tree i want is as below - Login - Home - Contact - About Contact and About are children of Home. This is my App.js , class App extends Component { render() { return ( <BrowserRouter> <div> <Route exact path="/home" component={HomeView} /> </div> </BrowserRouter> ); } } render(<App />, document.getElementById('root')); This is Home, export const HomeView = ({match}) => { return( <div> <NavBar /> Here i want to render the contact component, (Navbar need to stay) </div> ) } This is