DEV Community

Discussion on: How To Use React Error Boundary

Collapse
 
sayali0710 profile image
sayali0710

Can we use a different error boundary to wrap an error inside a functional component

Collapse
 
maybebored profile image
Mayuran

Hi, please elaborate what you mean? If you mean can you have more than one error boundary, yes that is possible. It's just a wrapper that will handle any Exception that is thrown from the child component, that it is wrapping.