How to use the react-popper.Reference function in react-popper

To help you get started, we’ve selected a few react-popper 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 sablierhq / sablier / packages / frontend / src / pages / PayWithSablier / MyReactDatePicker / index.jsx View on Github external
},
            ),
            React.cloneElement(popperComponent, { arrowProps: arrowProps }),
          );
        },
      );
    }

    if (this.props.popperContainer) {
      popper = React.createElement(this.props.popperContainer, {}, popper);
    }

    return React.createElement(
      reactPopper.Manager,
      null,
      React.createElement(reactPopper.Reference, null, function(_ref2) {
        var ref = _ref2.ref;
        return React.createElement("div", { ref: ref, className: "react-datepicker-wrapper" }, targetComponent);
      }),
      popper,
    );
  };

react-popper

Official library to use Popper on React projects

MIT
Latest version published 3 years ago

Package Health Score

79 / 100
Full package analysis