Last active
January 14, 2016 14:57
-
-
Save publicJorn/cee089f2e35e515fddc7 to your computer and use it in GitHub Desktop.
React component in ES6 class syntax
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
import React, {Component} from 'react'; | |
export class MyComponent extends Component { | |
constructor (props) { | |
super(props); | |
} | |
render () { | |
return ( | |
<p> | |
hello | |
</p> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment