Having trouble grasping React Router?

Out with the old, in with the new

Setting up React Router

make sure that it is installing in the React project folder
the dependency can be located in the package.json file
Clicking “Home” renders the Home component
Clicking “About” renders the About component

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store