Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class ReactConfig
- {
- public static void Configure()
- {
- ReactSiteConfiguration.Configuration
- .AddScript("~/Scripts/dist/CommentBox.js");
- }
- }
- var CommentBox = (function (_super) {
- __extends(CommentBox, _super);
- function CommentBox() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- CommentBox.prototype.render = function () {
- return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("div", { className: "commentBox" },
- __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("h1", null, "Comment-Box"),
- __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](CommentForm, null),
- __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](CommentList, null));
- };
- return CommentBox;
- }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]));
- expose const CommentBox;
- {
- entry: '/path/to/CommentBox.js',
- output: {
- library: ['MyComponents'],
- libraryTarget: 'this'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement