When you implement components in React, situations can occur in which you have to intervene in the component’s lifecycle at different points in time.