how to install react router dom with typescript

Shell
npm install react-router-dom @types/react-router-dom

# Yarn
yarn add react-router-dom @types/react-router-dom
Source

Also in Shell: