Learn React Error Boundaries In 7 Minutes

preview_player
Показать описание

Handling errors is something that most junior developers completely overlook, but it is one of the most important things you can do in any React application. In this video I will show you how to use ErrorBoundaries in React to handle and catch errors properly.

📚 Materials/References:

🌎 Find Me Here:

⏱️ Timestamps:

00:00 - Introduction
00:36 - Project Demo
01:59 - Error Boundary Basics
05:27 - Error Boundary componentDidCatch

#ErrorBoundary #WDS #ReactJS
Рекомендации по теме
Комментарии
Автор

This is lovely, thank you. Although if I am using functional components, I find it weird having to write a class components for error boundaries, and this doesn't catch async or handlers, I kinda think it is better to use the package react-error-boundaries since we can get to use the useErrorBoundary hook and still show our error.

nwaguchima
Автор

Just implemented error boundaries at my job. It was sorely lacking!

dave
Автор

I truly appreciate your lessons. There are several videos that duplicate your content, but the way you present these topics is far superior. Not just your demonstrations, but the way you speak, even the tone of your voice, really helps me to understand. It is a free-flowing delivery that is great to listen to, even as background noise at work.

AmbroseKTal
Автор

We just implemented this past week. Thanks kyle, I am bookmarking this for my team

hari
Автор

Error Boundary is asked frequently in interviews. Thanks so much!

mahdiabolghasemi
Автор

I had to use Error boundary two days back. I ended up using `react-error-boundary` which was suggested if we did not want to use class based components in Beta React docs

piyushaggarwal
Автор

Just built a new feature and saw this vid, implemented straight away. Very insightful, great video :)

mattb
Автор

It's nice to have an error boundary in react. It would be PERFECT if react had implemented a functional ErrorBoundary component. Some react-based frameworks have already implemented their own functional error boundaries so it's really weird that react itself doesn't have one.

Thassalocracy
Автор

Really good and straight forward content. Thanks!

guilhermeagostini
Автор

This component is really really useful.. I will add in my projects ❤

FrancescoOrsi
Автор

Amazing, spot on videos, its not just your programming skills that are amazing but your teaching skills are top notch 😉.

yazraf
Автор

Simple and amazing explanation! Great video!

petarkolev
Автор

love it brother. It really help me as a junior developer. Thanks a lot .

abdurrahim-bikd
Автор

Very nicely explained. Thanks for sharing

shantanukulkarni
Автор

Thank you for sharing and explaining it so explicitly !

iakivpekarskyi
Автор

Briliant as always.
I've watched your videos since 2019, and it helps me a lot till right now.
Big appreciate, Thank you Kyle.

princesiachin
Автор

A huge hearty thanks for the video... Have been following this channel for quite a while now and you have really made the entire web dev simplified...

If u don't mind, can u create a tutorial on rxjs and it's operators... I have been trying to use it but am unable to bring out entire potential of that tool. It really goes well with react too. Thks

legends_assemble
Автор

Do wrapping Error Boundary for an entire app is worth it ?? for an api call that fetches content for one component in app.
Also we need to keep in mind that components unmount by this approach which means we might loose other active states of that mounted components. I think individual Error Boundaries would give better Experience.

Great Content sir...

vigneshwarrv
Автор

Is there going to be guitar tutorial? april 1st is coming up 😬

alfaphoenix
Автор

Most underrated topic and most important! 🎉

cyril