Last active
April 26, 2016 14:55
-
-
Save jonnung/dd075c107307cefe76a87f6fb2026193 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My First React Example</title> | |
</head> | |
<body> | |
<div id="greeting-div"></div> | |
<script src="https://fb.me/react-15.0.0.js"></script> | |
<script src="https://fb.me/react-dom-15.0.0.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script> | |
<script type="text/babel"> | |
var Greeting = React.createClass({ | |
render: function() { | |
return ( | |
<p>Hello, Universe</p> | |
) | |
} | |
}); | |
ReactDOM.render( | |
<Greeting/>, | |
document.getElementById('greeting-div') | |
); | |
</script> | |
</body> | |
</html> |
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
testtesttest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment