React Error Boundaries
Error boundaries catch the error and display a fallback UI which par example a text "Something went wrong".
For error boundaries, if you add them, you need class-based components.
This is currently not possible with functional components.
code:
Error...
omarsaade.hashnode.dev2 min read