Created
March 26, 2017 20:27
-
-
Save foxish/dac059413facf5825ca8821eeb3a6b6c to your computer and use it in GitHub Desktop.
React JS Example // source http://jsbin.com/papasaq
This file contains hidden or 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> | |
<script src="http://fb.me/react-0.13.0.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>React JS Example</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var App = React.createClass({ | |
render: function(){ | |
return(React.createElement("div", null, "Hello React World!")); | |
} | |
}); | |
React.render(React.createElement(App), document.body); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var App = React.createClass({ | |
render: function(){ | |
return(React.createElement("div", null, "Hello React World!")); | |
} | |
}); | |
React.render(React.createElement(App), document.body);</script></body> | |
</html> |
This file contains hidden or 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("div", null, "Hello React World!")); | |
} | |
}); | |
React.render(React.createElement(App), document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment