Last active
August 29, 2015 13:56
-
-
Save joecritch/8804499 to your computer and use it in GitHub Desktop.
React boilerplate
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>App</title> | |
<style> | |
*, *:before, *:after { margin: 0; padding: 0; box-sizing: border-box; } | |
</style> | |
</head> | |
<body> | |
<div id="app-container"></div> | |
<script src="http://fb.me/react-with-addons-0.9.0.js"></script> | |
<script src="http://fb.me/JSXTransformer-0.9.0.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<script type="text/jsx"> | |
/** @jsx React.DOM */ | |
var App = React.createClass({ | |
render: function() { | |
return ( | |
<div></div> | |
); | |
} | |
}); | |
</script> | |
<script type="text/jsx"> | |
/** @jsx React.DOM */ | |
React.renderComponent(<App />, $('#app-container')[0]); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment