Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 682 Bytes

17-using-react-router.md

File metadata and controls

18 lines (13 loc) · 682 Bytes

Using React Router

  1. To install react-router, follow the installation instructions here.

  2. First, use the example they provide to get familiar with:

    • <Route>
      • What does the path represent?
      • What other attributes are there?
    • <Link>
    • <Router>
  3. 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>
  4. Create a route which uses a URL like http://localhost:3000/contacts/1 to show a specific contact.