DEV Community

Discussion on: React 16 and 16.2 Overview - Fragments, Portals and Error Boundaries

Collapse
 
nickytonline profile image
Nick Taylor • Edited

I'd also mention for those starting with React 16, why the error boundaries component needs to be a class instead of a stateless functional component. componentDidCatch is a life cycle method and life cycle methods are currently only supported in class components.