As with the previous version of LyricsFinder, we will use a router to go from the home page to the lyrics page. Let's start by installing the router.
Once again, you should see a lot of similarities between what we did before and what we'll do in a minute with the router; the concepts are the same. As we said at the beginning, we are going to use react-router.
Let's install the library and its typings by executing the following command:
yarn add react-router-dom @types/react-router-dom
If you want to easily find/add missing type definitions for your dependencies, then you can give this utility a try: https://github.com/jeffijoe/typesync.
Now, we're going to add the router outlet (that is, define the place where the router will render the active route) in our App component.
Open the frontend/src/App.tsx file and adapt...