Created
July 3, 2016 14:10
-
-
Save ehrudxo/a54614c19a2d0a69f1aa654a17e2690c to your computer and use it in GitHub Desktop.
ES6 extends Class
This file contains 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
<a href="#" id="ES2015Class">ES2015 Class</a> |
This file contains 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
function ES2015Class(){ | |
class ES2015Component extends React.Component { | |
render() { | |
return ( | |
<div>ES2015 Component Class!</div> | |
); | |
} | |
} | |
console.dir(ES2015Component); | |
ReactDOM.render(<ES2015Component/>,document.getElementById("app")); | |
} | |
$('#ES2015Class').click(ES2015Class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment