How to use the react-reconciler/inline.art.updateContainer function in react-reconciler

To help you get started, we’ve selected a few react-reconciler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebook / react / packages / react-art / src / ReactART.js View on Github external
componentDidMount() {
    const {height, width} = this.props;

    this._surface = Mode.Surface(+width, +height, this._tagRef);

    this._mountNode = createContainer(this._surface, LegacyRoot, false, null);
    updateContainer(this.props.children, this._mountNode, this);
  }
github facebook / react / packages / react-art / src / ReactART.js View on Github external
componentDidUpdate(prevProps, prevState) {
    const props = this.props;

    if (props.height !== prevProps.height || props.width !== prevProps.width) {
      this._surface.resize(+props.width, +props.height);
    }

    updateContainer(this.props.children, this._mountNode, this);

    if (this._surface.render) {
      this._surface.render();
    }
  }
github facebook / react / packages / react-art / src / ReactART.js View on Github external
componentWillUnmount() {
    updateContainer(null, this._mountNode, this);
  }