I'm just starting with react and I built my first application and now I'm trying to deploy it on github pages but the page is completely blank. The steps I followed are:
- Install gh-pages:
npm install gh-pages --save - Add homepage to package.json:
"homepage": "https://milind452.github.io/my-reads/" - Add scripts:
"predeploy": "npm run build", "deploy": "gh-pages -d build" - Deploy:
npm run deploy
I can see that the gh-pages branch is created and a deployment is also created; but the page is blank and nothing shows on the console. I checked the sources in the dev-tools and all the files are there.
I also checked my repo pages settings and the source for deployment is set to gh-pages branch. I'm not sure what is happening.
I also checked out this stackoverflow question but none of the answers there seemed to solve it for me.
Here is the github repo and the deployment link