Post

I don't think it violates a rule. There is just this new info out there somewhere that has folks simplifying it to; never set state in a useEffect.

0 reposts2 likes