3 ms·
That's a not a call to setState within the render function though, that's a declaration of an effect that sets state. Reference != call.
by activitypea 4y ago
That's a not a call to setState within the render function though, that's a declaration of an effect that sets state. Reference != call.