|
|
|
|
|
by hazza1
2658 days ago
|
|
Hooks solve some problems nicely, the main killer for me is that they don't work with classes, so you end up with 2 wildly different paradigms in your codebase. Feels like hooks should have been a clean start in a new framework rather than retrofitted into React. |
|
On the other hand, people who are fine with having state managed both via class components and via hooks (and why shouldn't they be?) can gradually introduce the concept and refactor existing components as needed, if and when they see some advantage in using hooks at all.
If you don't want milk with your coffee, it's not a problem that there's a pitcher of milk at the table.