1<ConnectedRouter history={history}>
2 <BrowserRouter>
3 <Switch>
4 <PrivateRouter exact path="/" component={App} />
5 <Route exact path="/login" component={Login} />
6 <Route component={NotFound} />
7 </Switch>
8 <BrowserRouter>
9</ConnectedRouter>
1 <Switch>
2 <>
3 <Route path="/">
4 <Welcome />
5 </Route>
6 <Redirect to="/" />
7 </>
8 </Switch>