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`.
componentDidMount() {
        ReactDOM.render(<div />, layer);
      }
      componentWillUnmount() {
        ReactDOM.unmountComponentAtNode(layer);
      }
      render() {
        return <div />;
      }
    }
    class Outer extends React.Component {
      render() {
        return <div>{this.props.children}</div>;
      }
    }
    ReactDOM.render(
      <Outer>
        <Component />
      </Outer>,
      container,
    );
    ReactDOM.render(<Outer />, container);
  });
  it('should warn when mutated props are passed', () => {
    const container = document.createElement('div');
    class Foo extends React.Component {