React · Senior · Question 69 of 75

How do you let users retry after an error boundary shows a fallback?

Explanation

Built-in error boundaries are class components; the react-error-boundary library adds hooks, reset keys and onReset to refetch or clear bad state.

Further reading

Problem with a question

React · Senior · question 69

Test yourself

Take the React · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz