Uncaught Invariant Violation: Too many re-renders. React limits the number of renders to prevent an infinite loop
I suspect that the problem lies in the fact that you are calling your state setter immediately inside the function component body, which forces React to re-invoke your function again, with the same props, which ends up calling the state setter again, which triggers React to call your function again…. and so on. const SingInContainer … Read more