React | Error Boundaries and Debugging | Question 2

Last Updated :
Discuss
Comments

Where should error boundaries be used in React?

Around the root component only

Inside functional components only

Around components that might throw errors

Inside class components only

Share your thoughts in the comments