What Is The Purpose Of ShouldComponentUpdate Lifecycle Method?

What does shouldComponentUpdate do and why is it important?

.

What is the use of componentWillMount?

What is the use of getDerivedStateFromProps?

When should you use Docomponentupdate?