# React 06: Errors

***

## Docs

***

## Better Error Handling

1. catch errors
2. handle the UI accordingly
3. log errors properly

***

## React Error Boundary

c.f. <https://www.freecodecamp.org/news/best-practices-for-react/>

***

## Use try-catch block to handle errors beyond boundaries

c.f. <https://www.freecodecamp.org/news/best-practices-for-react/>

***

## Logging errors

c.f. <https://www.freecodecamp.org/news/best-practices-for-react/>
