Doesn't look like there's any way to run a React game with React Router, built with CRA on Itch.io which is a shame. Changing the asset URLs then breaks page routing, and leaving the asset URLs as is returns 403 errors.
Is there away just pull in an iframe of the game instead? It exists on their own pages, and could just be pulled in via an iframe (rather than uploaded and then pulled in via iframe)
Viewing post in HTML/ JS (React) Game returns 403 Errors
Hey there, just another React Idle dev chiming in with a solution for you!
Using github pages to host the project, and then uploading just a simple html file with an iframe to the github page works for me, at least in the draft stage so for! Hopefully it works when published and works for you too. Good luck. It was your comment that gave me the idea, and it was easy enough to implement. So thanks too, haha.