Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

When things go wrong, get errors right!

When things go wrong, get errors right!

When we build React applications, the fun part is always the happy path: when everything works! But let's face it, sometimes things go wrong, and error handling can be a tricky topic. Don't worry, though - we've got you covered! In this talk, we'll dive into the world of error handling in React and explore how to make it less daunting and more enjoyable.

Glenn Reyes

May 09, 2023
Tweet

More Decks by Glenn Reyes

Other Decks in Programming

Transcript

  1. TypeError: Cannot read property 'name' of undefined at Slide.render (Slide.tsx:10)

    at Slide.render (Slide.tsx:11) at Slide.render (Slide.tsx:11) at Slide.render (Slide.tsx:11) ...
  2. “Class components are still supported by React, but we don’t

    recommend using them in new code.” - react.dev
  3. Whoops Something went wrong! The third-party service you’re trying to

    connect with is not responding, so we can’t process your data. Try again later. Close
  4. Bottom line Wait until a user moves on Provide any

    constraints upfront Use an asterisk for required fields Reserve error-like visual treatments for critical system- status messages