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`.
return <div className="child-with">{this.props.children}</div>;
      }
    }
    class ChildWithoutContext extends React.Component {
      componentWillReceiveProps(nextProps, nextContext) {
        expect('foo' in nextContext).toBe(false);
        if (nextProps !== this.props) {
          propChanges++;
        }
        if (nextContext !== this.context) {
          contextChanges++;
        }
      }
      render() {
        return <div className="child-without">{this.props.children}</div>;
      }
    }
    class Parent extends React.Component {
      static childContextTypes = {
        foo: PropTypes.string,
      };
      state = {
        foo: 'abc',
      };
      getChildContext() {
        return {
          foo: this.state.foo,
        };
      }
      render() {