Skip to content

Instantly share code, notes, and snippets.

@voronianski
Last active November 15, 2018 15:47
Show Gist options
  • Save voronianski/c1d2dc372850408912e81908d886955a to your computer and use it in GitHub Desktop.
Save voronianski/c1d2dc372850408912e81908d886955a to your computer and use it in GitHub Desktop.
with babel-standalone v6.26.0
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<!-- put markup and other contents here -->
</body>
</html>
import React from 'react';
console.log("react", React);
{
"name": "babel-standlone-example-1",
"description": "with babel-standalone v6.26.0",
"version": "1.0.0",
"dependencies": {
"react": "16.6.3"
}
}
"use strict";
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
console.log("react", _react2.default);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment