- 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 insrc/Store.js
- "https://pokeapi.co/api/v2/pokemon"
- "https://pokeapi.co/api/v2/pokemon-form/"
- 'https://pokeapi.co/api/v2/pokemon-species/
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
set the state to pick the latest value, the current state returns old value of what's supposed to be there
- 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)