J.P. Morgan interview question

Describe component lifecycle