Xoriant interview question

Explain the lifecycles and hooks in react