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`.
constructor(props, context) {
        super(props, context);
        this.state = {
          color: 'green',
        };
      }
      render() {
        return <Apple color={this.state.color} ref="apple" />;
      }
    }
    class Apple extends React.Component {
      state = {
        cut: false,
        slices: 1,
      };
      shouldComponentUpdate(nextProps, nextState) {
        return shallowCompare(this, nextProps, nextState);
      }
      cut() {
        this.setState({
          cut: true,
          slices: 10,
        });
      }
      eatSlice() {