React app returns 404 on refresh? Here's the 2-minute fix
You deploy your React app, click around, and everything works. Then you refresh on /about and get a 404 . Here's why it happens, and how to fix it on the most common hosts. Why it happens In a single-page app, there's only one real file: index.html .