Skip to content

Instantly share code, notes, and snippets.

@joecritch joecritch/index.html
Last active Aug 29, 2015

Embed
What would you like to do?
React boilerplate
<!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
You can’t perform that action at this time.