Skip to content

Instantly share code, notes, and snippets.

@songyule
Created March 17, 2020 08:58
Show Gist options
  • Save songyule/1856280f85651812902cfaff37c6d686 to your computer and use it in GitHub Desktop.
Save songyule/1856280f85651812902cfaff37c6d686 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>
<!-- put markup and other contents here -->
</body>
</html>
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
import React from 'react';
function Test() {
return <div>233</div>
}
export default Test;
{
"name": "esnextbin-sketch",
"version": "0.0.0"
}
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function Test() {
return _react2.default.createElement(
'div',
null,
'233'
);
} // write ES2015 code and import modules from npm
// and then press "Execute" to run your program
exports.default = Test;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment