No Description

App.js 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6. var _react = require('react');
  7. var _react2 = _interopRequireDefault(_react);
  8. var _logo = require('./logo.svg');
  9. var _logo2 = _interopRequireDefault(_logo);
  10. require('./App.css');
  11. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  13. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  14. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  15. var App = function (_Component) {
  16. _inherits(App, _Component);
  17. function App() {
  18. _classCallCheck(this, App);
  19. return _possibleConstructorReturn(this, (App.__proto__ || Object.getPrototypeOf(App)).apply(this, arguments));
  20. }
  21. _createClass(App, [{
  22. key: 'render',
  23. value: function render() {
  24. return _react2.default.createElement(
  25. 'div',
  26. { className: 'App' },
  27. _react2.default.createElement(
  28. 'header',
  29. { className: 'App-header' },
  30. _react2.default.createElement('img', { src: _logo2.default, className: 'App-logo', alt: 'logo' }),
  31. _react2.default.createElement(
  32. 'h1',
  33. { className: 'App-title' },
  34. 'Welcome to React'
  35. )
  36. ),
  37. _react2.default.createElement(
  38. 'p',
  39. { className: 'App-intro' },
  40. 'To get started, edit ',
  41. _react2.default.createElement(
  42. 'code',
  43. null,
  44. 'src/App.js'
  45. ),
  46. ' and save to reload.'
  47. )
  48. );
  49. }
  50. }]);
  51. return App;
  52. }(_react.Component);
  53. exports.default = App;
  54. //# sourceMappingURL=App.js.map