React Router
React Router
There are four important tags needed to create a basic React router in
our React application: BrowserRouter, Routes, Route, and Link.
Example:
Output:
What is useParams?
You can use the useParams hook in the rendered component to retrieve the parameters
like so:
App.js
About.js
Home.js