Whenever you're ready, walk me through how you'd approach this.
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.