Same as https://github.com/facebook/react/issues/10103, but for the server renderer. You can look at implementation in https://github.com/facebook/react/pull/11168 and do something very similar in `ReactPartialRenderer.js`.
this.setState({
          slices: this.state.slices - 1,
        });
      }
      render() {
        renderCalls++;
        return <div />;
      }
    }
    const container = document.createElement('div');
    const instance = ReactDOM.render(<PlasticWrap />, container);
    expect(renderCalls).toBe(1);
    
    instance.setState({color: 'green'});
    expect(renderCalls).toBe(1);
    
    instance.setState({color: 'red'});
    expect(renderCalls).toBe(2);
    
    instance.refs.apple.cut();
    expect(renderCalls).toBe(3);
    
    instance.refs.apple.cut();
    expect(renderCalls).toBe(3);
    
    instance.refs.apple.eatSlice();
    expect(renderCalls).toBe(4);
  });
  it('does not do a deep comparison for a shallow shouldComponentUpdate implementation', () => {
    function getInitialState() {