<Switch> <Redirect exact={true} from="/" to="/home"></Route> <Route path="/home" component={HomeCom}></Route> <Route path="/monitor" component={MonitorCom}></Route> <Route path="/workbench" component={WorkbenchCom}> <Route component={NotFound}></Route> </Switch>