Whenever you're ready, walk me through how you'd approach this.
Describe your experience with React and state management in complex applications, including patterns you rely on and how you handle data flow. Discuss how you separate local UI state, shared client state, and server state, and how actions, effects, caching, and component rendering interact. Include one concrete example and explain the trade-offs of your chosen approach.