Skip to content

Instantly share code, notes, and snippets.

@jzelenkov
Last active September 30, 2015 06:37
Show Gist options
  • Save jzelenkov/901434b8ed6a4036c203 to your computer and use it in GitHub Desktop.
Save jzelenkov/901434b8ed6a4036c203 to your computer and use it in GitHub Desktop.
React + Babel straight outta browser
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello React!</title>
<script src="build/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/babel">
React.render(
<h1>Hello, world!</h1>,
document.body
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment