How to use the @skbkontur/react-ui/lib/LayoutEvents.addListener function in @skbkontur/react-ui

To help you get started, we’ve selected a few @skbkontur/react-ui 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 skbkontur / react-ui-tour / src / lib / components / tooltip / TooltipHighlight.tsx View on Github external
componentDidMount() {
    if (!this.state.hasElem) return;
    this.target = this.props.targetGetter();
    this.reflow();

    //add throttle
    this._layoutEventsToken = LayoutEvents.addListener(this.reflow);
  }

@skbkontur/react-ui

UI Components

MIT
Latest version published 5 days ago

Package Health Score

85 / 100
Full package analysis

Similar packages