Skip to content

Instantly share code, notes, and snippets.

@ehrudxo
Created July 3, 2016 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehrudxo/a54614c19a2d0a69f1aa654a17e2690c to your computer and use it in GitHub Desktop.
Save ehrudxo/a54614c19a2d0a69f1aa654a17e2690c to your computer and use it in GitHub Desktop.
ES6 extends Class
<a href="#" id="ES2015Class">ES2015 Class</a>
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