Implementation of React components' shouldComponentUpdate for stateful and propful components.