Nicolò Ribaudo 9f4e2f81d8
[class-properties] Remove unnecessary return and temp variable (#8123)
* Remove unnecessary temp variable

* Update tests
2018-06-08 07:02:36 +02:00

19 lines
279 B
JavaScript

var _ref =
/*#__PURE__*/
<span>Sub Component</span>;
class Component extends React.Component {
constructor(...args) {
super(...args);
this.subComponent = () => _ref;
var _ref2 =
/*#__PURE__*/
<this.subComponent />;
this.render = () => _ref2;
}
}