Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.14 KB

Pokémon Webiste, created from scratch

  • using Javascript, React, React Components, React Hooks, React Context handling global state that can be accessed by all components from one place which is the react Context, setup of that context is created in src/Store.js

APIs Used from the PokeApi services

Getting The App Started

npm start Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

Todo:

set the state to pick the latest value, the current state returns old value of what's supposed to be there

Launch Github page

  • npm install gh-pages --save-dev
  • In the package.json file, scroll down to the scripts property and add the following commands:
    "predeploy" : "npm run build", "deploy" : "gh-pages -d build",
  • npm run deploy
  • npm install gh-pages --save (optional if the previous easnt enough)
  • "deploy": "gh-pages -b main -d build" (optional if the previous doesnt work, then this switches to main branch totally)