2018-01-09 15:36:42 +01:00

7 lines
99 B
JavaScript

function fn(Component, obj) {
var data = obj.data;
return () => <Component prop={data} />;
}