render() {
    return (
      <Router history={this.props.history}>
        <Route path="/" component={App}/>
        <Route path="/register" component={Register}/>
        <Route path="/home" component={Home}>
          <Route path="/profile" component={Profile}/>
          <Route path="/slides" component={Slides}/>
        </Route>
      </Router>
    );
  }
// doing so from a Root component
doing so from a Root component
doing so from a Root component
render() {
    return (
      <Router history={this.props.history}>
        <Route path="/" component={App}/>
        <Route path="/register" component={Register}/>
        <Route path="/home" component={Home}>
          <Route path="/profile" component={Profile}/>
          <Route path="/slides" component={Slides}/>
        </Route>
      </Router>
    );
  }
render ( ) { return ( < Router history = { this . props . history } > < Route path = "/" component = { App } / > < Route path = "/register" component = { Register } / > < Route path = "/home" component = { Home } > < Route path = "/profile" component = { Profile } / > < Route path = "/slides" component = { Slides } / > < / Route > < / Router > ) ; }
doing so from a Root component
doing so from a Root component