Last active
October 9, 2018 15:04
-
-
Save bedirhankaradogan/ec242d0bce099802ea0eba9337fa10f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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