Re:React is becoming a black box
by Emanation on Thursday September 03, 2020 @10:42AM
(#24364522)
How is the mental model hard to grasp? Hooks are just functional components. They render information like everything else. Following the same rule set. State change? The hooks renders. Parent renders? The hook renders. Want to stop it from rendering? Use a memo. Want to run logic only when certain state changes? Use an effect.
[ Parent
| on HN ]
There are no comments on this comment yet.