I am new to this and trying to deploy the boilerplate react app (with a tiny bit of text)
I have done everything I can to try and work this out but still getting a blank screen when I deploy from git hub. I have followed instructions from GitHub - gitname/react-gh-pages: Deploying a React App (created using create-react-app) to GitHub Pages</t (Lots of times(just in case i did it wrong))
This is what I have done.
1- created empty repo on git hub neamed react-gh-pages (noticed it initialises a git repo anyway)
2- created react app with npx create-react-app react-gh-pages (with gitbash) and cd to react-gh-pages
3-opened in vs code and added ‘please work’ toApp.js to id
4-done npm install gh-pages --save-dev
5- added “homepage”: “http://fredferret.github.io/react-gh-pages”,
and “predeploy”: “npm run build”,
“deploy”: “gh-pages -d build” to appropriate places in package Json & saved
6-git init and got ‘Reinitialized existing Git repository in C:/Users/adejo/Desktop/DEPLOY ISSUE/react-gh-pages/.git/’
7-git remote add origin https://github.com/fredferret/react-gh-pages.git
8-npm run deploy.
9- npm start to check, all good
Build was successful
10- over to Netlify to deploy
11-new site from Git
12-Continuous deployment GitHub
deployed to gh-pages branch and did not touch the basic build settings.
BLANK PAGE!! :-/
could anyone point me in the right direction. I know you will want to see code details, so can you let me know what you need to see and ill send.