Files
react/compiler/crates/react_hermes_parser/tests/fixtures/constructor.js
2024-04-02 16:49:31 -07:00

11 lines
167 B
JavaScript

function Foo() {}
function Component(props) {
const a = [];
const b = {};
new Foo(a, b);
let _ = <div a={a} />;
new Foo(b);
return <div a={a} b={b} />;
}