react-router-tutorial

Learning Objectives

  • Contrast React Router's approach to routing with routing we have seen in express
  • Use npm to add react-router-dom
  • Install and use React Router to manage routing in a React app
  • Use React Router's navigational components: Router, Route, Link, NavLink, and Switch

Resources

Keep in mind that React Router went through a fundamental design change with the creation of React Router v4. There is lots of pre-v4 documentation and tutorials around so when researching/reading about React Router, be sure you are reading about the correct version.