You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 💣 We can get rid of this line once we start using the type param.
37
+
console.log(pokemonId);
38
38
// 🧑🏻💻 2.g: We need to now update the state for when a pokemon card is selected or not.
39
39
// IF selectedPokemon includes the pokemonId then we need to de-select that pokemon card.
40
40
// ELSE we add the pokemon id to the array of pokemon cards [...selectedPokemon, pokemonId] and then setSelectedPokemon(newValues) (make this a variable as we will need it for later.)
0 commit comments