daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return (
  2.       <div>
  3.         <div>
  4.           <Link to="/one">One</Link>
  5.           <Link to="/two">Two</Link>
  6.         </div>
  7.         <Switch>
  8.           <Route exact path="/one" component={One} />
  9.           <Route exact path="/two" component={Two} />
  10.           <Route component={Three} />
  11.         </Switch>
  12.       </div>
  13.     );
  14.    
  15. return (
  16.       <div>
  17.         <div>
  18.           <Link to="/#one">One</Link>
  19.           <Link to="/#two">Two</Link>
  20.         </div>
  21.         <Switch>
  22.           <Route exact path="/#one" component={One} />
  23.           <Route exact path="/#two" component={Two} />
  24.           <Route component={Three} />
  25.         </Switch>
  26.       </div>
  27.     );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top