|
|
|
|
|
by yawnr
983 days ago
|
|
Hooks gained momentum because of advantages in composability and removing a lot of pain with HOCs. Brevity also helped. The obfuscation about re-renders and memoization of variables is absolutely a downside that I see junior devs really struggle with all the time — something that “just works” with class components. Anyway, both are fine and usable haha. Just think there are arguments to be made on both sides. |
|