mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
8 lines
229 B
JavaScript
8 lines
229 B
JavaScript
function render(Component) {
|
|
var _Component;
|
|
var text = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
return function () {
|
|
return _Component || (_Component = <Component text={text} />);
|
|
};
|
|
}
|