Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RefHolder.js 833B

1234567891011121314151617181920212223242526272829303132
  1. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
  2. import PropTypes from 'prop-types';
  3. import React from 'react';
  4. var propTypes = {
  5. children: PropTypes.node
  6. };
  7. /**
  8. * Internal helper component to allow attaching a non-conflicting ref to a
  9. * child element that may not accept refs.
  10. */
  11. var RefHolder =
  12. /*#__PURE__*/
  13. function (_React$Component) {
  14. _inheritsLoose(RefHolder, _React$Component);
  15. function RefHolder() {
  16. return _React$Component.apply(this, arguments) || this;
  17. }
  18. var _proto = RefHolder.prototype;
  19. _proto.render = function render() {
  20. return this.props.children;
  21. };
  22. return RefHolder;
  23. }(React.Component);
  24. RefHolder.propTypes = propTypes;
  25. export default RefHolder;