index.js 1.2 KB

12345678910111213141516171819202122
  1. "use strict";
  2. var _react = _interopRequireDefault(require("react"));
  3. var _reactDom = _interopRequireDefault(require("react-dom"));
  4. require("./index.css");
  5. var _App = _interopRequireDefault(require("./App"));
  6. var serviceWorker = _interopRequireWildcard(require("./serviceWorker"));
  7. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. _reactDom.default.render(_react.default.createElement(_App.default, null), document.getElementById('root')); // If you want your app to work offline and load faster, you can change
  10. // unregister() to register() below. Note this comes with some pitfalls.
  11. // Learn more about service workers: http://bit.ly/CRA-PWA
  12. serviceWorker.unregister();