Explain how state updates and re-renders work in React · InterviewLane