title: how to catch errors inside components in reactjs?
body: <p>What's the standard for handling unexpected errors that may occur into the specific react components which may move away on page refresh, because of irrelevant data in props or state. As it will be good if we code our components in a specific manner to handle it by its own method. </p>