Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Will the ErrorBoundary component handle the error in the code below?
No, because error boundary component can handle only issues of children components wrapped with this error boundary component
It will work as if the whole SimpleComponent was wrapped inside of ErrorBoundary
Error that happens in the js does not affect rendering of SimpleComponent. ErrorBoundary is not needed here
Yes, it will handle the jsx inside of it
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!