Skip to content

mary-martinez/react-pokemon-compendium

Repository files navigation

Compendium Planning

  • Get my list of pokemon showing up on the page
    1. write your fetch function -- validate with console.log *
    2. addUseEffect and set state with the response *
    3. map through your state and display the name *
    4. build out your PokeCard component -- use static values *
    5. map through your items and display PokeCard *
  • Build out types dropdown
    1. getTypes from the API *
    2. call getTypes and set in state *
    3. make state for selected dropdown *
    4. make a dropdown with the types and selected dropdown *
    5. add useEffect to call API when the dropdown changes *

General Flow

  1. make a state variable
  2. make UX to allow user to change that state variable
  3. add state variable to useEffect dependency array so API is refreshed when state changes

url_image: "http://assets.pokemon.com/assets/cms2/img/pokedex/full/012.png"