|
|
|
|
|
by ricardobeat
1002 days ago
|
|
I’m referring to the dependency array you pass into hooks, and any hook being able to trigger updates. With classes there was no manual dependency tracking (except comparing old props?) and all re-renders were triggered by state, context or prop changes. Not making a judgement either way, just stating the trade-offs. |
|
There does seem to be an aspect to modern react where it’s great if you’re willing to put in the effort to figure out all the quirks, but for everyone else who just wants to get things done/has other priorities, it’s a bit of a minefield at times.