npm install react-router-dom @types/react-router-dom # Yarn yarn add react-router-dom @types/react-router-dom