Perhaps the most used component in your app is Link. Its almost
identical to the <a/> tag you're used to except that its aware of
the Router it was rendered in.
Lets create some navigation in our App component.
- Import Link from React Router in your App.js
- Return a component with:
- an h1 that says 'React Router Tutorial'
- an unordered list with a role of 'nav'
- 2 list items 6. next Link components inside the list items 7. one for About and One for Repos
Now visit http://localhost:8080/ and click the links, click back, click forward. It works!