<ConnectedRouter history={history}>
<BrowserRouter>
<Switch>
<PrivateRouter exact path="/" component={App} />
<Route exact path="/login" component={Login} />
<Route component={NotFound} />
</Switch>
<BrowserRouter>
</ConnectedRouter>
<Switch>
<>
<Route path="/">
<Welcome />
</Route>
<Redirect to="/" />
</>
</Switch>