Q. What is the purpose of the shouldComponentUpdate lifecycle method?