/* should not generate diagnostics */
import React from "react";
[, , ];
[...[, ], ];
[, xyz ? : , ];
[, , ];
data.map(x => {x});
data.map(x => {x});
data.forEach(x => data1.push({x}));
Array.from([1, 2, 3], (x) => {x});
Array.from([1, 2, 3], (x) => {
return {x}
});
[React.createElement("h1", {key}), React.createElement("h1", {key: "second"}), React.createElement("h1", {key: third})];
data.map(c => React.createElement("h1", {key}));
React.Children.map(c => React.cloneElement(c, {key: c}));
(
)
(
)
({data.map(x => {x}
)}
)
({[, , ]}
)
({data.map(c => )}
)
({data.map(c => ())}
)