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.
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.