React Router

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

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

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