cjs/ViewModel.js
function (VMType, ViewType) {
        var vm = new VMType();
        var vmFunctionProps = getFunctionalPropertiesMap(vm);
        var VConnect = /** @class */ (function (_super) {
            __extends(VConnect, _super);
            function VConnect() {
                return _super !== null && _super.apply(this, arguments) || this;
            }
            VConnect.prototype.render = function () {
                var props = this.props;
                return (react_1.default.createElement(ViewType, __assign({ vm: vm }, vmFunctionProps, props)));
            };
            return VConnect;
        }(react_1.default.PureComponent));
        return VConnect;
    }
function (VMType, ViewType) {
        var vm = new VMType();
        var vmFunctionProps = getFunctionalPropertiesMap(vm);
        var VConnect = /** @class */ (function (_super) {
            __extends(VConnect, _super);
            function VConnect() {
                return _super !== null && _super.apply(this, arguments) || this;
            }
            VConnect.prototype.render = function () {
                var props = this.props;
                return (react_1.default.createElement(ViewType, __assign({ vm: vm }, vmFunctionProps, props)));
            };
            return VConnect;
        }(react_1.default.PureComponent));
        return VConnect;
    }
function ( VMType , ViewType ) { var vm = new VMType ( ) ; var vmFunctionProps = getFunctionalPropertiesMap ( vm ) ; var VConnect = /** @class */ ( function ( _super ) { __extends ( VConnect , _super ) ; function VConnect ( ) { return _super !== null && _super . apply ( this , arguments ) || this ; } VConnect . prototype . render = function ( ) { var props = this . props ; return ( react_1 . default . createElement ( ViewType , __assign ( { vm : vm } , vmFunctionProps , props ) ) ) ; } ; return VConnect ; } ( react_1 . default . PureComponent ) ) ; return VConnect ; }
Connects a view model to a view.
@param VMType The view model constructor.
@param ViewType The view constructor.
Connects a view model to a view .