Since they currently share the injection, server renderer includes a lot of unnecessary client-only code. We should cut it out.
const newRoot = DOMRenderer.createContainer(container);
    root = container._reactRootContainer = newRoot;
    
    DOMRenderer.unbatchedUpdates(() => {
      DOMRenderer.updateContainer(children, newRoot, parentComponent, callback);
    });
  } else {
    DOMRenderer.updateContainer(children, root, parentComponent, callback);
  }
  return DOMRenderer.getPublicRootInstance(root);
}
var ReactDOMFiber = {
  render(
    element: ReactElement<any>,
    container: DOMContainer,
    callback: ?Function,
  ) {
    if (ReactFeatureFlags.disableNewFiberFeatures) {
      
      
      
      if (!isValidElement(element)) {
        if (typeof element === 'string') {
          invariant(
            false,
            'ReactDOM.render(): Invalid component element. Instead of ' +
              "passing a string like 'div', pass " +
              "React.createElement('div') or <div />.",
          );
        } else if (typeof element === 'function') {