This is a sample project used for education of React Router.
The code is organised into different branches which have progressively more complexity.
First you can checkout the basic layout branch.
git checkout 1-setup
The next branch adds 2 routes with react-router-dom
.
git checkout 2-home-and-about
We then change the navigation to use history.pushState
via Link
components.
git checkout 3-pushstate-navigation
The fourth branch adds a route for /workouts
git checkout 4-workouts-route
The last step adds the not found page
git checkout 5-not-found-route