News for hackers. Stuff that matters.
Re:Frustrations with React Hooks by aidos on Tuesday September 10, 2019 @03:08PM (#20932170)
You don't need to use hooks there. You can just define your functions and be done with it.
Re:Frustrations with React Hooks by RussianCow on Tuesday September 10, 2019 @03:13PM (#20932247)
You do if you don't want those child components to be re-rendered needlessly when some higher-level state changes.