react.dev
react.dev copied to clipboard
[Suggestion]: Add example for retry with the `use` hook and an error boundary
trafficstars
Summary
We often want to provide a "retry" button in the error state of the error boundary. An example how to combine this with the use hook would be very helpful.
Page
https://react.dev/reference/react/use#dealing-with-rejected-promises
Details
In the ex