Explain the use of the componentDidCatch method. | Lifecycle functions | react Interview Questions | NextRound.in