I have a website that runs Express on the backend, where I define an api and serve my build directory. My app looks like this:
function App() {
return (
<BrowserRouter>
<Route path="/" component={Home} exact />
<Route path="/explore" component={Explore} exact />
</BrowserRouter>
);
}
I would like to be able to drop the build directory into an S3 bucket then have my API requests to a hardcoded location.
The problem is, when I open up index.html, my and components don't render. What are some possible solutions?