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
92 B
JavaScript

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