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

8 lines
118 B
JavaScript

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