Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A component becomes an error boundary if it defines:
static getDerivedStateFromError() only
both static getDerivedStateFromError() and componentDidCatch()
static getDerivedStateFromError() or componentDidCatch()
componentDidCatch() only
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!