brandelli
Version:
react components library in typescript
33 lines (32 loc) • 1.22 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var styles_1 = require("./styles");
var default_1 = /** @class */ (function (_super) {
__extends(default_1, _super);
function default_1(props) {
var _this = _super.call(this, props) || this;
_this.state = {};
return _this;
}
default_1.prototype.render = function () {
var content = this.props.content;
return (React.createElement(styles_1.Item, { key: content.id },
React.createElement("span", null, content.label)));
};
return default_1;
}(React.Component));
exports["default"] = default_1;