2 ms·
If you're using setState in useEffect directly in a component then you're probably doing something wrong. All the valid use cases I can think of for functionali
by crooked-v 6y ago
If you're using setState in useEffect directly in a component then you're probably doing something wrong. All the valid use cases I can think of for functionality like that should be using a wrapping hook function, rather than re-implementing functionality separately in components.