I am still not clear why we need Error Boundary in React. In my opinion, the concept of Error Boundary came up in component based React development. Actually in many tech interviews, a number of CTOs ask me about the Error Boundary. I managed to answer but I often knock myself out how to implement Error Boundary in React hooks. Actually lots of lifecycle methods are deprecated and I want to know how to solve this out.