It loads the home home page fine, its just when trying to navigate to a different route even through the application that i get the 404 error.
return (
<Router>
<Container maxW='100%'>
<Sidebar>
<Heading align={"center"}>
Default Election Name
</Heading>
<Switch>
<Route path="/elections" component={Login}>
</Route>
</Switch>
</Sidebar>
</Container>
</Router>
Here is how I do the routing inside my App component
NOTE: Login has been placed there for easier testing and loads fine in local
Edit: Is there possibly more I have to do with the path than call just /elections. Unfamiliar with react-router so maybe my setup only works locally