React v16 beta is out, suddenly everyone needs to catch UI errors.

Error Handling, how to catch all the things?

i ❤ codesanbox

Second case, throw an error on a event handler.

Basically, the rule of thumb is that errors from render/constructor/lifecycle are caught.

Third case, force a runtime error

Fourth Case

Fifth Case

So what’s next…?

What else?

--

--

yep.. i’m an asshole🤷🏻‍♂️

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store