Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<div id="main"></div>
<script type="text/babel">
const App = ({ name }) => <h1>Hello, {name}</h1>
ReactDOM.render(<App name="Dan" />, document.getElementById('main'));
<!-- vendors -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
.forEach(function(script) {
var el = document.createElement('script');
el.innerHTML = Babel.transform(script.innerText, { presets: ['es2015', 'react'] }).code;
script.parentNode.insertBefore(el, script);
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.