Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
? Object.assign({}, this.props, { getState: function () { return _this.state; } })
: this.props
}), body, resources);
};
}
else {
result[val] = typeof body === 'function'
? body
: getFunctionFromEval({
body: body,
args: args
});
}
return result;
}, {});
var reactComponentClass = create_react_class_1["default"](classOptions);
if (options.name) {
Object.defineProperty(reactComponentClass, 'name', {
value: options.name
});
}
var reactClass = returnFactory
? react_1["default"].createFactory(reactComponentClass)
: reactComponentClass;
return reactClass;
}
exports.getReactClassComponent = getReactClassComponent;