3 ms·
Oh, here is another 1 I caught: > There is currently no way to write an error boundary as a function component. However, you don’t have to write the error boun
by jve 4y ago
Oh, here is another 1 I caught:
> There is currently no way to write an error boundary as a function component. However, you don’t have to write the error boundary class yourself. For example, you can use react-error-boundary instead.
https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary https://react.dev/reference/react/Component#catching-renderi...