Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created June 17, 2016 19:54
Show Gist options
  • Save ericelliott/8c50d91eef4f915943818233a9d7f4eb to your computer and use it in GitHub Desktop.
Save ericelliott/8c50d91eef4f915943818233a9d7f4eb to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<div id="root"></div>
<!-- put markup and other contents here -->
</body>
</html>
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<div>Hello from React</div>,
document.getElementById('root')
);
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"react": "15.0.2",
"react-dom": "15.1.0"
}
}
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
_reactDom2.default.render(_react2.default.createElement(
'div',
null,
'Hello from React'
), document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment