If you are aiming to performance on redux then I recommend you reselect. By using reselect you get out-of-the-box:
On the other hand, if you were using only local state, then the recommendation is to compute the derived state on the render method rather than using getDerivedStateFromProps.