UNPKG

reactant-ssr

Version:

A server-side renderer for Reactant

21 lines (18 loc) 614 B
import { __extends, __assign } from './node_modules/tslib/tslib.es6.js'; import React from 'react'; import { ViewModule } from 'reactant'; /** * AppView for SSR entry point */ var AppView = /** @class */ (function (_super) { __extends(AppView, _super); function AppView() { return _super !== null && _super.apply(this, arguments) || this; } AppView.prototype.component = function (_a) { var Component = _a.Component, pageProps = _a.pageProps; return React.createElement(Component, __assign({}, pageProps)); }; return AppView; }(ViewModule)); export { AppView };