Hacker News new | ask | show | jobs
by cercatrova 1383 days 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).
1 comments

Yeah not quite the same but very analogous because hooks are designed to compose much as pure functions do.