Basic React Tutorial from complete-react-developer-zero-to-mastery
yarn start
-
yarn add gh-pages
-
In
package.json
add these new items.{ "homepage": "https://<your-github-username>.github.io/<your-github-repo-name>", "scripts": { "predeploy": "yarn build", "deploy": "gh-pages -d build" }, }
-
yarn deploy
-
git add -A
-
git commit -m "adding files for github pages"
-
ggpush
If you don't have zsh shell, you will have to run:git push origin master
-
See live github page https://aambayec.github.io/tut-react-monsters/.
Check your version
yarn list react react-dom react-scripts
Modify your package.json, add ^
to enable updates without breaking changes
yarn upgrade
Check your version
npm list react react-dom react-scripts
Modify your package.json, add ^
to enable updates without breaking changes
npm update
If you saw vulnerabilities run:
npm audit fix