I am using react-router-dom 5.2.0. I want 2 files that define all of my routes. 1 file for public routes, 1 file for private. The right component renders when I hit the home route, but not the /content route.
App.jsx returns:
<BrowserRouter>
<Switch>
<PublicRoutes />
<PrivateRoutes />
</Switch>
</BrowserRouter>
PublicRoutes.jsx returns:
<Route path="/" exact render={() => <h1>home route</h1>} />
And PrivateRoutes.jsx returns:
<Route path="/content" exact render={() => <h1>Content Route</h1>} />
I am able to load / with "home route", but nothing renders when I hit the /content url.