How unnecessary re-renders happen and how to avoid them · InterviewLane