**Do you want to request a *feature* or report a *bug*?**
bug

**What is the current behavior?**
In normal rendering, you can memoize a class-based component: https://jsfiddle.net/586ea3cx/

With the shallow renderer, it seems like you can't: https://jsfiddle.net/odj217Lv/1/

This might be blocking https://github.com/airbnb/enzyme/pull/1914, in which tests are failing with `Cannot call a class as a function`. (it's tough to repro stuff with the shallow renderer)
state = {};
      static getDerivedStateFromProps = logger('getDerivedStateFromProps');
      componentDidMount = logger('componentDidMount');
      shouldComponentUpdate = logger('shouldComponentUpdate');
      componentDidUpdate = logger('componentDidUpdate');
      componentWillUnmount = logger('componentWillUnmount');
      render() {
        return <div />;
      }
    }
    const shallowRenderer = createRenderer();
    shallowRenderer.render(<SomeComponent foo={1} />);
    
    
    expect(logs).toEqual(['getDerivedStateFromProps']);
    logs.splice(0);
    const instance = shallowRenderer.getMountedInstance();
    instance.setState({});
    expect(logs).toEqual(['getDerivedStateFromProps', 'shouldComponentUpdate']);
    logs.splice(0);
    shallowRenderer.render(<SomeComponent foo={2} />);
    
    expect(logs).toEqual(['getDerivedStateFromProps', 'shouldComponentUpdate']);
  });
  it('should not invoke deprecated lifecycles (cWM/cWRP/cWU) if new static gDSFP is present', () => {
    class Component extends React.Component {