Created
September 25, 2016 09:27
-
-
Save slaith/5f1e7be2c44a270206c9ce41eb66c750 to your computer and use it in GitHub Desktop.
ReactWorkshop Step1
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 HelloWorld=React.createClass({ | |
render:function(){ | |
return React.createElement("div",{"className":"bright",id:"gello"},"HelloWorld"); | |
} | |
}); | |
ReactDOM.render(React.createElement(HelloWorld,null), document.getElementById("app")); |
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
<html> | |
<head><title>REact Workshop: Hello World</title></head> | |
<body> | |
<div id="app"></div> | |
<script src ="../lib/react.js"></script> | |
<script src ="../lib/react-dom.min.js"></script> | |
<script src ="app.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment