Clint Goodman 266e07736e
fix: Don't hoist JSX elements referencing mutable variables (#13054)
issue-13051

Co-authored-by: Clint Goodman <clintgoodman@workfront.com>
2021-03-25 16:38:31 +01:00

6 lines
103 B
JavaScript

let foo = 'hello';
export const Component = () => {
foo = 'goodbye';
return <span>{foo}</span>;
};