Reset

Loading "Reset"
πŸ‘¨β€πŸ’Ό Sometimes errors are temporary and will go away if you just "turn it off and on again." react-error-boundary supports this with a resetErrorBoundary function it passes to our FallbackComponent. We can use this to reset the error boundary and try again.
Once you're done, you can test it out. We've still got the typo in our onSubmit handler, so go ahead and trigger the error by submitting the form, then click the "Try again" button to see the error go away.
Login to get access to the exclusive discord channel.
  • βš›οΈFundamentals
    First Four Exercises are Free!
    Kent C. Dodds β—† πŸš€πŸ†πŸŒŒ:
    To make sure this shows up in the fundamentals thread. Isn't it exciting the first four exercises of...
    1 Β· 4 days ago
  • General
    Welcome to EpicReact.dev! Say Hello πŸ‘‹
    Kent C. Dodds β—† πŸš€πŸ†πŸŒŒ:
    Welcome to the first of many posts in the EpicReact.dev channel! Take a moment to introduce yourself...
    0 Β· 4 days ago