Skip to content

aambayec/tut-react-monsters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monsters Rolodex

Basic React Tutorial from complete-react-developer-zero-to-mastery

To Run

yarn start

To Deploy in Github Pages

  1. yarn add gh-pages

  2. 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"
        },
    }
  3. yarn deploy

  4. git add -A

  5. git commit -m "adding files for github pages"

  6. ggpush If you don't have zsh shell, you will have to run: git push origin master

  7. See live github page https://aambayec.github.io/tut-react-monsters/.

To Update React Packages

Using Yarn

Check your version

yarn list react react-dom react-scripts

Modify your package.json, add ^ to enable updates without breaking changes

yarn upgrade

Using NPM

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