I'm trying to deploy my site but I'm getting a 404 error. Seems to work fine on git hub

In addition to the above, since you’re dealing with react and github.io you can see another answer I’ve given that may be (at least partially) applicable to you:

E.g. Check both your Publish directory and your homepage value in your package.json.