If you're using react you need to build the app for production before being deployed.
npm run build
Add this to the top of your package.json: "homepage": "https://.github.io/"
npm run build
npm install --save gh-pages
Add these scripts to your json:
"scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d build" }
npm run deploy
Have a look at your deployed app 👌