Closed randomlylelo closed 3 years ago
I already installed react router.
Doing through index.js is the easiest BUT not really recommended. I would reccomend seperating the code in App.js into FrontPage.js and SecondPage.js and have the router there.
index.js
App.js
FrontPage.js
SecondPage.js
Just follow the quick start guide: https://reactrouter.com/web/guides/quick-start
I already installed react router.
Doing through
index.js
is the easiest BUT not really recommended. I would reccomend seperating the code inApp.js
intoFrontPage.js
andSecondPage.js
and have the router there.Just follow the quick start guide: https://reactrouter.com/web/guides/quick-start