Search code examples
reactjserror-handlingerror-logging

Exception Handling and Error Logging limitation for ReactJs


We are using ReactJs version is 15.6.2

  1. Error Boundaries library is not support, it is support only for React Version 16 and above.
  2. try…catch method is not support for child components.

Logging Error into client side or server side is fine, the problem raise while try to catch the exceptions From components, child components and .js file exceptions. Any idea or help for resolving this issue?


Solution

  • In React 15, you can use the precursor of componentDidCatch called unstable_handleError.