UBS interview question

Explain React Component life cycle