-
To install react-router, follow the installation instructions here.
-
First, use the example they provide to get familiar with:
<Route>
- What does the
path
represent? - What other attributes are there?
- What does the
<Link>
<Router>
-
Now integrate react-router into one of the projects you have developed during this class. It would be great if you could have URLs which direct the user to your:
<TweetBox>
<ContactList>
<EditInvoice>
-
Create a route which uses a URL like
http://localhost:3000/contacts/1
to show a specific contact.