UNPKG

zent

Version:

一套前端设计语言和基于React的实现

18 lines (17 loc) 512 B
import { __extends } from "tslib"; import { Component } from 'react'; import { findDOMNode } from 'react-dom'; var DOMRef = (function (_super) { __extends(DOMRef, _super); function DOMRef() { return _super !== null && _super.apply(this, arguments) || this; } DOMRef.prototype.getDOMNode = function () { return findDOMNode(this); }; DOMRef.prototype.render = function () { return this.props.children; }; return DOMRef; }(Component)); export default DOMRef;