Instruction: Discuss the purpose of shouldComponentUpdate and how it can be used to optimize component updates.
Context: This question tests the candidate's understanding of React's component lifecycle, particularly the use of shouldComponentUpdate for performance optimization.