Antigua sintaxis del interruptor del enrutador

import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";

<Switch>
    <Route path="/home" component={Home} />
</Switch>
Shiny Shark