React
React too many re-renders infinite loop
React detected a render loop where state updates keep causing immediate re-renders, and it stopped the component to prevent the app from locking up.
React
React detected a render loop where state updates keep causing immediate re-renders, and it stopped the component to prevent the app from locking up.
Observed message
Too many re-renders. React limits the number of renders to prevent an infinite loop.
Why it happens
How to fix it
Official reference
React Docs: Minified React error #301Related errors
Explore more