You can do that with Github Pages, but I'm not too knowledgable. But I copied your code in an codesandbox:
Fork it if you want, I will delete it then (or on your request)
Fork it if you want, I will delete it then (or on your request)
Apparently the contents of the page were somehow mangled a bit. As a result it is not functional.
Thank you, benjaminsuch, for that pointer.