4 ms·
Class based components are garbage. There's a reason hooks were introduced. It is analogous to OOP vs functional programming, inheritance vs composition (not ex
by cercatrova 4y ago
Class based components are garbage. There's a reason hooks were introduced. It is analogous to OOP vs functional programming, inheritance vs composition (not exactly the same because hooks are not pure functions).
- ummonk 4y agoYeah not quite the same but very analogous because hooks are designed to compose much as pure functions do.