Amdocs interview question

Explain the React life cycles.