gdirk07 / PokemonChecker

Playing around with APIs
https://gdirk07.github.io/PokemonChecker/
0 stars 0 forks source link

Convert PokemonDisplay.tsx class based component into functional #69

Closed gdirk07 closed 2 years ago

gdirk07 commented 2 years ago

The React community is moving towards a functional based architectures, and its possible that class components could be phased out in the future. This issue involves converting classes into functional (with the exception of App.tsx, that may be its own issue in terms of restruturing it with styling, functional, etc).

Edit: I think DDD related classes (factories, repositories etc) are fine as it, this only concerns with view components. And doing a quick sweep there are two, App.tsx, and PokemonDisplay.tsx, for the purpose of this issue, only PokemonDisplay will be considered for now.