Reacts' shouldComponentUpdate implementation for pure state+props components.