DEV Community

Discussion on: React Component Lifecycle Explained

Collapse
 
theoutlander profile image
Nick Karnik

You're welcome, Sung. I'm glad that this was useful. I hope the quality of the recording was better this time. :)

(I responded yesterday, but I'm not sure what happened to my post!)

Although I used componentDidCatch in my class, I think creating an ErrorBoundary component might be a better approach as it is reusable and you don't have to track the error state, etc. and perform conditional rendering. It also depends on the complexity of your app. I took a few shortcuts in this tutorial to keep it relatively short (but it was still 25 minutes!).

Thanks for the tip about following the official React documentation. That is a good idea.

Collapse
 
dance2die profile image
Sung M. Kim

I hope the quality of the recording was better this time. :)

Yes it indeed was better 😃