Hopefully this has a simple answer but I haven't found anyone else asking this: I'm just trying to create a route hierarchy with one route (the signin page in this case) that lives outside of a wrapper, and every other route living inside said wrapper (which has header/sidebar/etc). I'm using react 16.0.0 + react-router-dom 4.2.2 and my futile attempt to get things working is
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import Wrapper from './components/common/Wrapper';
import App from './components/App';
import HomePage from './components/Home';
import SignInUpPage from './components/SignInUp';
import DistrictsPage from './components/Districts';
import StudioPage from './components/Studio';
import CollectionsPage from './components/Collections';
export default (
<Wrapper>
<Route path="/account" component={SignInUpPage} />
<App>
<Switch>
<Route exact path="/" component={HomePage} />
<Route path="/districts" component={DistrictsPage} />
<Route path="/studio" component={StudioPage} />
<Route path="/collections" component={CollectionsPage} />
</Switch>
</App>
</Wrapper>
);
But obviously this just renders the app component below the signin, same result if I nest the App component within the Switch. Thanks very much for any help!