Skip to content

Instantly share code, notes, and snippets.

@AkshayRana92
Created August 14, 2017 13:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AkshayRana92/1bc4e86fe20c800478611250a420919c to your computer and use it in GitHub Desktop.
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