Execution sequence of a React component’s lifecycle methods

When work­ing with React, it is impor­tant to under­stand the role that each com­po­nent life­cy­cle method plays and the order in which they are invoked. Why does it mat­ter? For starters, I will list…