Старый синтаксис переключателя маршрутизатора
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
<Switch>
<Route path="/home" component={Home} />
</Switch>
Shiny Shark