Skip to content

Instantly share code, notes, and snippets.

@AkshayRana92
Created Aug 14, 2017
Embed
What would you like to do?
ES5 :
function MyComponent(props) {
return <h1>Hello World}</h1>;
}
ES6
class MyComponent extends Component {
render() {
return <h1>Hello World}</h1>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment