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

7 lines
92 B
JavaScript

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