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) {
            super(props);
            lifecycle.push('getInitialState');
            this.state = {name: 'TestComponent'};
          }
          componentWillMount() {
            lifecycle.push('componentWillMount');
          }
          componentDidMount() {
            lifecycle.push('componentDidMount');
          }
          render() {
            lifecycle.push('render');
            return <span>Component name: {this.state.name}</span>;
          }
          componentWillUpdate() {
            lifecycle.push('componentWillUpdate');
          }
          componentDidUpdate() {
            lifecycle.push('componentDidUpdate');
          }
          shouldComponentUpdate() {