Answer the question
In order to leave comments, you need to log in
Is there a way to catch fatal errors in React?
Let's say somewhere in an unexpected place we have undefined and the application breaks, in this case, in the dev assembly, an overlay will pop up with a description of the error, but is it possible to catch such fatal errors in the build assembly and instead display some page for user, a la "Something went wrong, please try again later".
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question