通用评论

index.js 1004B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. var _react = require("react");
  3. var _react2 = _interopRequireDefault(_react);
  4. var _reactDom = require("react-dom");
  5. var _reactDom2 = _interopRequireDefault(_reactDom);
  6. var _App = require("./App");
  7. var _App2 = _interopRequireDefault(_App);
  8. var _registerServiceWorker = require("./registerServiceWorker");
  9. var _registerServiceWorker2 = _interopRequireDefault(_registerServiceWorker);
  10. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11. var props = {
  12. type: 1,
  13. businessId: "1",
  14. API: "http://api.links123.net/comment/v1",
  15. showList: false
  16. };
  17. var editorProps = {
  18. showEmoji: true,
  19. placeholder: "说点什么吧",
  20. rows: 5
  21. // onSubmit={v => console.log()} // TODO...
  22. };
  23. _reactDom2.default.render(_react2.default.createElement(
  24. _App2.default,
  25. props,
  26. _react2.default.createElement(_App.Editor, editorProps)
  27. ), document.getElementById("root-comment"));
  28. (0, _registerServiceWorker2.default)();
  29. //# sourceMappingURL=index.js.map