Main dependencies
React Router DOM vs React Router
Install react-router-dom with the following command:
npm i --save-dev react-router-dom @types/react-router-dom
Install types and others
Even if create-react-app comes already with React, we will also install the types:
npm i --save-dev @types/react @types/node
We will also need to install TypeScript:
npm i --save-dev typescript