How to use make-event-props - 9 common examples

To help you get started, we’ve selected a few make-event-props 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 wojtekmaj / react-pdf / src / Document.jsx View on Github external
get eventProps() {
    // eslint-disable-next-line react/destructuring-assignment
    return makeEventProps(this.props, () => this.state.pdf);
  }
github wojtekmaj / react-pdf / src / Outline.jsx View on Github external
get eventProps() {
    // eslint-disable-next-line react/destructuring-assignment
    return makeEventProps(this.props, () => this.state.outline);
  }
github wojtekmaj / react-timerange-picker / src / TimeRangePicker.jsx View on Github external
get eventProps() {
    return makeEventProps(this.props);
  }
github wojtekmaj / react-daterange-picker / src / DateRangePicker.jsx View on Github external
get eventProps() {
    return makeEventProps(this.props);
  }
github wojtekmaj / react-date-picker / src / DatePicker.jsx View on Github external
get eventProps() {
    return makeEventProps(this.props);
  }
github wojtekmaj / react-pdf / src / Page.jsx View on Github external
get eventProps() {
    return makeEventProps(this.props, () => {
      const { page } = this.state;
      if (!page) {
        return page;
      }

      return makePageCallback(page, this.scale);
    });
  }
github wojtekmaj / react-time-picker / src / TimePicker.jsx View on Github external
get eventProps() {
    return makeEventProps(this.props);
  }
github wojtekmaj / react-datetime-picker / src / DateTimePicker.jsx View on Github external
get eventProps() {
    return makeEventProps(this.props);
  }

make-event-props

Returns an object with on-event callback props curried with provided args.

MIT
Latest version published 1 year ago

Package Health Score

66 / 100
Full package analysis

Popular make-event-props functions