Skip to content

Instantly share code, notes, and snippets.

@slaith
Created September 25, 2016 09:27
Show Gist options
  • Save slaith/5f1e7be2c44a270206c9ce41eb66c750 to your computer and use it in GitHub Desktop.
Save slaith/5f1e7be2c44a270206c9ce41eb66c750 to your computer and use it in GitHub Desktop.
ReactWorkshop Step1
var HelloWorld=React.createClass({
render:function(){
return React.createElement("div",{"className":"bright",id:"gello"},"HelloWorld");
}
});
ReactDOM.render(React.createElement(HelloWorld,null), document.getElementById("app"));
<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