How to perform Error Boundary using React Hooks

Viewed 1777

I am trying to look for some predefined hooks that could be used for Error Boundary for my React Application. I don't want to use any external library support, so is there any way out for that since useEffect does not replace componentDidCatch.

1 Answers
Related