DEV Community

Discussion on: Client-side rendering! Get out of my way!!

Collapse
 
kvsm profile image
Kevin Smith 🏴󠁧󠁢󠁳󠁣󠁴󠁿

Nice! I ran into the same issue hosting React apps on GitHub Pages. Fortunately they also allow you to workaround by redirecting 404s. 🙂

Collapse
 
bassemibrahim profile image
Bassem • Edited

Ummm, I thought Github pages only serve 1 page and that you cannot have any kind of routing 🧐. I ended up using react's state instead of react router dom to serve all pages content within the home page.

Collapse
 
kvsm profile image
Kevin Smith 🏴󠁧󠁢󠁳󠁣󠁴󠁿

There are a couple of ways, see here: itnext.io/so-you-want-to-host-your...

Thread Thread
 
bassemibrahim profile image
Bassem • Edited

Ohh yeah. cool hack, Always happy to see some good hack that saves the day! Thanks Kevin!