HCLTech interview question

Explain ReactJS life cycle mechanism