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

10 lines
140 B
JavaScript

function render() {
const nodes = [];
for(let i = 0; i < 5; i++) {
nodes.push(<div>{i}</div>)
}
return nodes;
}