How do you manage state in a complex app to avoid unnecessary re-renders · InterviewLane