loading...

re: How to deploy React App to GitHub Pages VIEW POST

TOP OF THREAD FULL DISCUSSION
re: found this post useful, thank you...I have a question, after i have pushed my react app to github page, when i visit the url it displays blank with...
 

I got this same problem in the beginning. If you follow this tutorial correctly,then try this one.

Your home page route should be like this





<Route exact path="/your github repo name">



instead for

and in your rendered component change the




<Link to="/your github repo name">



instead for




<Link to="/">



And another important point you should consider. your github repo name must be valid name for example dots or space should not be in your repo name because that things conflict with URL.
 

this should be mentioned in the create-react-app docs, was so frustrated because of this simple code change, thanks alot mate @Piruthuvi

 

Thanks a lot @Piruthuvi.

Code of Conduct Report abuse