React Router

React Router basically maps a specific url with a specific component.

https://reacttraining.com/react-router/web/example/basic

<Router>
   <div>
      <ul>
        <li><Link to="/">Home</Link></li>
        <li><Link to="/about">About</Link></li>
        <li><Link to="/topics">Topics</Link></li>
       </ul>
 
       <Route extract path="/" component={Home} />
       <Route extract path="/about" component={About} />
       <Route extract path="/topics" component={Topics} />
   </div>
</Router>

Everything is a component <Link is a component as is <Route as is <Router

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License