Basic React Tutorial from complete-react-developer-zero-to-mastery
yarn start-
yarn add gh-pages -
In
package.jsonadd 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" -
ggpushIf 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-scriptsModify your package.json, add ^ to enable updates without breaking changes
yarn upgradeCheck your version
npm list react react-dom react-scriptsModify your package.json, add ^ to enable updates without breaking changes
npm updateIf you saw vulnerabilities run:
npm audit fix