Samuel Reed c307bbb3a9 Fix PathHoister hoisting before a same-scope variable declaration.
Seems we didn't have tests running for this very simple case.

Also fixes #5520
2017-05-01 14:32:11 -07:00

7 lines
99 B
JavaScript

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