Created
December 3, 2014 05:34
-
-
Save anonymous/61372549b76d81b4822b to your computer and use it in GitHub Desktop.
First React Component ReactJS Hello World // source http://jsbin.com/pehere
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> | |
<head> | |
<meta name="description" content="ReactJS Hello World" /> | |
<meta charset="utf-8"> | |
<title>First React Component</title> | |
<script src="http://fb.me/react-0.8.0.js"></script> | |
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script> | |
<script type="text/jsx"> | |
/*** @jsx React.DOM */ | |
var APP = React.createClass({ | |
render: function() { | |
return ( | |
<h1>Hello Reactive World</h1> | |
) | |
} | |
}); | |
React.renderComponent(<APP />, document.body); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment