Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return (
- <div>
- <div>
- <Link to="/one">One</Link>
- <Link to="/two">Two</Link>
- </div>
- <Switch>
- <Route exact path="/one" component={One} />
- <Route exact path="/two" component={Two} />
- <Route component={Three} />
- </Switch>
- </div>
- );
- return (
- <div>
- <div>
- <Link to="/#one">One</Link>
- <Link to="/#two">Two</Link>
- </div>
- <Switch>
- <Route exact path="/#one" component={One} />
- <Route exact path="/#two" component={Two} />
- <Route component={Three} />
- </Switch>
- </div>
- );
Add Comment
Please, Sign In to add comment