Skip to content

Instantly share code, notes, and snippets.

@bedirhankaradogan
Last active October 9, 2018 15:04
Show Gist options
  • Select an option

  • Save bedirhankaradogan/ec242d0bce099802ea0eba9337fa10f2 to your computer and use it in GitHub Desktop.

Select an option

Save bedirhankaradogan/ec242d0bce099802ea0eba9337fa10f2 to your computer and use it in GitHub Desktop.
class ClassComponent extends React.Component {
render() {
return "I'm the class component";
}
}
/*
var ClassComponent = function (_React$Component) {
_inherits(ClassComponent, _React$Component);
function ClassComponent() {
_classCallCheck(this, ClassComponent);
return _possibleConstructorReturn(this, (ClassComponent.__proto__ || Object.getPrototypeOf(ClassComponent)).apply(this, arguments));
}
_createClass(ClassComponent, [{
key: "render",
value: function render() {
return "I'm the class component";
}
}]);
return ClassComponent;
}(_react2.default.Component);
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment