import { BrowserRouter as Router, Route } from 'react-router-dom'; code example Example: react-router react-router-dom npm install react-router-dom