How React handles re-renders and memory · InterviewLane