3 ms·
The reason react hooks get so much hate it's because that it's basically Aspect-Oriented Programming. If ur project scope is small and u don't get why you need
by gloryjulio 3y ago
The reason react hooks get so much hate it's because that it's basically Aspect-Oriented Programming. If ur project scope is small and u don't get why you need it in the first place, then it looks weird and unintuitive. But when u work on bigger projects and u have some many shared HOCs which are stacked, they become callback hells to manage and debug.
But hooks solve this cross cutting problem. It's like going from promise callback hells to async await.