'Which component lifecycle method is best suited for performing side effects?

Which component lifecycle method is best suited for performing side effects?

componentWillMount()
shouldComponentUpdate()
componentDidUnmount()
componentDidMount()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source