Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. public static class ReactConfig
  2. {
  3. public static void Configure()
  4. {
  5. ReactSiteConfiguration.Configuration
  6. .AddScript("~/Scripts/dist/CommentBox.js");
  7. }
  8. }
  9.  
  10. var CommentBox = (function (_super) {
  11. __extends(CommentBox, _super);
  12. function CommentBox() {
  13. return _super !== null && _super.apply(this, arguments) || this;
  14. }
  15. CommentBox.prototype.render = function () {
  16. return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("div", { className: "commentBox" },
  17. __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("h1", null, "Comment-Box"),
  18. __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](CommentForm, null),
  19. __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](CommentList, null));
  20. };
  21. return CommentBox;
  22. }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]));
  23.  
  24. expose const CommentBox;
  25.  
  26. {
  27. entry: '/path/to/CommentBox.js',
  28. output: {
  29. library: ['MyComponents'],
  30. libraryTarget: 'this'
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement