See more
componentWillUpdate() : this method is invoked when shouldComponentUpdate() returns true inorder to do some extra processing.
componentWillUpdate()
shouldComponentUpdate
()
true
npm i mobx mobx-react --save