Created
August 21, 2015 02:26
-
-
Save uxnjs01/cb1afd12f5af447fcbae to your computer and use it in GitHub Desktop.
Creating the HelloWorld Component
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 charset="utf-8"> | |
<title>React.js Hello World!</title> | |
<script src="https://fb.me/react-0.13.3.js"></script> | |
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script> | |
</head> | |
<body> | |
<div id="hello"></div> | |
<script type="text/jsx"> | |
var HelloWorld = React.createClass({ | |
render: function() { | |
return ( | |
<h1>Hello, World!</h1> | |
); | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the tutorial at: http://www.uxnjs.com/hello-world-with-react/