News for hackers. Stuff that matters.
Re:Understanding UseMemo and UseCallback by cercatrova on Tuesday August 30, 2022 @08:33PM (#32656931)
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).
Re:Understanding UseMemo and UseCallback by ummonk on Wednesday August 31, 2022 @05:00PM (#32668295)
Yeah not quite the same but very analogous because hooks are designed to compose much as pure functions do.