score:1

 import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
 ...
 <Switch>
        <Route path="/about" component={About} />
        <Route path="/company" component={Company} />
        <Route path="/:user" component={User} />
 </Switch>

Related Query

More Query from same tag