Can I create routes with react-router for a github-pages site?
Ok, so I've made a SPA using React and React-Router and have pushed it to github pages, but none of the routes I have written work when I refresh or click back in my browser. I had the same problem when I was serving the page locally, but then followed along to this SO answer and made a server.js file which provided a redirect to my static HTML page at each route. Here is what the file looks like: "use strict"; let express = require('express'); let path = require('path'); let app = express(); app.use(express.static('public')); app.get('/contact', function(req, res){ res.sendFile('public/index