my-reads | virtual bookshelf using React for the course Nanodegree | Frontend Framework library
kandi X-RAY | my-reads Summary
kandi X-RAY | my-reads Summary
Estante virtual criada para o projeto do Nanodegree React Udacity.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of my-reads
my-reads Key Features
my-reads Examples and Code Snippets
Community Discussions
Trending Discussions on my-reads
QUESTION
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
...ANSWER
Answered 2021-Jun-17 at 20:42Never use BrowserRouter
on GitHub Pages. There are some issues with it, it always shows blank screen. Use HashRouter
instead, that will most probably work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install my-reads
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page