1 | "use strict";
|
2 |
|
3 | function _classCallCheck(instance, Constructor) {
|
4 | if (!(instance instanceof Constructor)) {
|
5 | throw new TypeError("Cannot call a class as a function");
|
6 | }
|
7 | }
|
8 |
|
9 | function _possibleConstructorReturn(self, call) {
|
10 | if (!self) {
|
11 | throw new ReferenceError(
|
12 | "this hasn't been initialised - super() hasn't been called"
|
13 | );
|
14 | }
|
15 | return call && (typeof call === "object" || typeof call === "function")
|
16 | ? call
|
17 | : self;
|
18 | }
|
19 |
|
20 | function _inherits(subClass, superClass) {
|
21 | if (typeof superClass !== "function" && superClass !== null) {
|
22 | throw new TypeError(
|
23 | "Super expression must either be null or a function, not " +
|
24 | typeof superClass
|
25 | );
|
26 | }
|
27 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
28 | constructor: {
|
29 | value: subClass,
|
30 | enumerable: false,
|
31 | writable: true,
|
32 | configurable: true
|
33 | }
|
34 | });
|
35 | if (superClass)
|
36 | Object.setPrototypeOf
|
37 | ? Object.setPrototypeOf(subClass, superClass)
|
38 | : (subClass.__proto__ = superClass);
|
39 | }
|
40 |
|
41 | export var MyComp = (function(_React$Component) {
|
42 | _inherits(MyComp, _React$Component);
|
43 |
|
44 | function MyComp() {
|
45 | _classCallCheck(this, MyComp);
|
46 |
|
47 | return _possibleConstructorReturn(
|
48 | this,
|
49 | (MyComp.__proto__ || Object.getPrototypeOf(MyComp)).apply(this, arguments)
|
50 | );
|
51 | }
|
52 |
|
53 | return MyComp;
|
54 | })(React.Component);
|