I deployed a react-app on Google Cloud Platform: https://just-palace-214904.appspot.com/
However only the first page shows up and the hyperlinks don't work. They worked fine when I was running the app on localhost. Below is my setup:
index.js:
import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import SignIn from './components/SignIn';
import SignUp from './components/SignUp';
import ForgotPass from './components/ForgotPass';
ReactDOM.render((<BrowserRouter>
<Switch>
<Route exact={true} path="/" component={SignIn}/>
<Route path="/signup" component={SignUp}/>
<Route path="/forgot" component={ForgotPass}/>
</Switch>
</BrowserRouter>), document.getElementById('root'));
My hyperlinks:
<a href="/forgot">Forgot password?</a><br/>
<a href="/signup">Create account</a>