24 lines
836 B
JavaScript
24 lines
836 B
JavaScript
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
||
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
||
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
||
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
||
|
import * as React from 'react';
|
||
|
/**
|
||
|
* Fallback to findDOMNode if origin ref do not provide any dom element
|
||
|
*/
|
||
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
||
|
_inherits(DomWrapper, _React$Component);
|
||
|
var _super = _createSuper(DomWrapper);
|
||
|
function DomWrapper() {
|
||
|
_classCallCheck(this, DomWrapper);
|
||
|
return _super.apply(this, arguments);
|
||
|
}
|
||
|
_createClass(DomWrapper, [{
|
||
|
key: "render",
|
||
|
value: function render() {
|
||
|
return this.props.children;
|
||
|
}
|
||
|
}]);
|
||
|
return DomWrapper;
|
||
|
}(React.Component);
|
||
|
export { DomWrapper as default };
|