Samuel Reed f4e3dfee74 Fix PathHoister hoisting before bindings. (#5153)
Fixes #5149 and enables a few additional safe hoists.
2017-02-12 18:35:08 -08:00

16 lines
297 B
JavaScript

function render() {
const bar = "bar",
_ref = <foo bar={bar} />,
renderFoo = () => _ref;
return renderFoo();
}
function render() {
const bar = "bar",
renderFoo = () => _ref2,
baz = "baz",
_ref2 = <foo bar={bar} baz={baz} />;
return renderFoo();
}