I'm working on a ReactJS web app. I made a change to code that was working and now I get an error:
Error: Minified React error #301
I can revert the code to get it working again but I'm not sure what I'm doing wrong to get this error.
NOTE: The last thing I added was:
const [openDialog, setOpenDialog] = useState(false);
So perhaps I can't use this...
Does React have a list of error codes and explanations?
React error codes and explanations. Nothing that helped.Does React have a list of error codes and explanations?
There should be a URL included in the error that points you to a more complete description. The pattern is:
https://reactjs.org/docs/error-decoder.html?invariant=###
So I plugged in 301 and got the following https://reactjs.org/docs/error-decoder.html?invariant=301 answer...
Too many re-renders. React limits the number of renders to prevent an infinite loop.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With