Your question is Explain React Lifecycle and State Management. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Tell me about the lifecycle methods in React and how you manage state in complex applications.
Explain both class component lifecycle methods and their modern function-component equivalents, including when effects run and clean up. Cover how you would separate local state, shared state, server state, and derived state without creating synchronization bugs.