Created
August 8, 2017 15:18
-
-
Save sujaykundu777/5a2effa2c9bf0c4cf11a7bca175fc666 to your computer and use it in GitHub Desktop.
Simple Greeting component for React
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
var App = React.createClass({ | |
render: function(){ | |
return( | |
React.createElement('h1', null, 'Hello, world!') | |
) | |
} | |
}); | |
window.addEventListener('load', function() { | |
React.render( | |
React.createElement(App,null), | |
document.getElementById('root') | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment