yuna-c / pokemonDex

https://pokemon-dex-virid.vercel.app
0 stars 0 forks source link

useSelector 구조 분해 할당 #3

Open SeolJaeHyeok opened 3 months ago

SeolJaeHyeok commented 3 months ago

https://github.com/yuna-c/pokemonDex/blob/b165db66df2bda41fcd4fda77266dc5a94deea7a/src/components/pokemonCard/PokemonCard.jsx#L14-L15

여기는 한 줄로 줄일 수 있을 것 같아요!

 const {countPokemon, selectedPokemon} = useSelector((state) => state.pokemon) 
yuna-c commented 2 months ago

수정 하였습니다.