4 ms·
You don't need to use hooks there. You can just define your functions and be done with it.
by aidos 7y ago
You don't need to use hooks there. You can just define your functions and be done with it.
- RussianCow 7y agoYou do if you don't want those child components to be re-rendered needlessly when some higher-level state changes.