onyxcodes / brockdex

Brock's favorite pokedex
https://onyxcodes.github.io/brockdex/
Other
0 stars 0 forks source link

Fn component and component refactoring to Typescript #11

Closed onyxcodes closed 2 years ago

onyxcodes commented 2 years ago

Code was significally simplified although the FC refactor and doesn't seem to have introduced a drop in performance. Keep an eye for:

  1. Better usage of React hooks (useCallback)