Skip to content

Instantly share code, notes, and snippets.

@period331
Last active April 22, 2016 03:57
Show Gist options
  • Select an option

  • Save period331/c61b17cac97c5d580335c56b2b0407fb to your computer and use it in GitHub Desktop.

Select an option

Save period331/c61b17cac97c5d580335c56b2b0407fb to your computer and use it in GitHub Desktop.

Revisions

  1. baocaixiong revised this gist Apr 22, 2016. No changes.
  2. baocaixiong revised this gist Apr 22, 2016. 4 changed files with 38 additions and 4 deletions.
    2 changes: 1 addition & 1 deletion esnextbin.md
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    made with [esnextbin](http://esnextb.in)
    made with [esnextbin](http://esnextb.in/?gist=c61b17cac97c5d580335c56b2b0407fb)
    7 changes: 6 additions & 1 deletion index.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,9 @@
    // write ES2015 code and import modules from npm
    // and then press "Execute" to run your program

    import React from 'react'
    import React from 'react'

    class A extends React.Commponent
    {

    }
    3 changes: 2 additions & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    "name": "esnextbin-sketch",
    "version": "0.0.0",
    "dependencies": {
    "react": "15.0.1"
    "react": "15.0.1",
    "babel-runtime": "6.6.1"
    }
    }
    30 changes: 29 additions & 1 deletion transpiled.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,35 @@
    'use strict';

    var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');

    var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

    var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

    var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

    var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

    var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

    var _inherits2 = require('babel-runtime/helpers/inherits');

    var _inherits3 = _interopRequireDefault(_inherits2);

    var _react = require('react');

    var _react2 = _interopRequireDefault(_react);

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

    var A = (function (_React$Commponent) {
    (0, _inherits3.default)(A, _React$Commponent);

    function A() {
    (0, _classCallCheck3.default)(this, A);
    return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(A).apply(this, arguments));
    }

    return A;
    })(_react2.default.Commponent); // write ES2015 code and import modules from npm
    // and then press "Execute" to run your program
  3. baocaixiong created this gist Apr 22, 2016.
    1 change: 1 addition & 0 deletions esnextbin.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    made with [esnextbin](http://esnextb.in)
    11 changes: 11 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <!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>
    4 changes: 4 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    // write ES2015 code and import modules from npm
    // and then press "Execute" to run your program

    import React from 'react'
    7 changes: 7 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    {
    "name": "esnextbin-sketch",
    "version": "0.0.0",
    "dependencies": {
    "react": "15.0.1"
    }
    }
    7 changes: 7 additions & 0 deletions transpiled.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    'use strict';

    var _react = require('react');

    var _react2 = _interopRequireDefault(_react);

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }