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

10 lines
170 B
JavaScript

function foo(a, b, c) {
// Construct and freeze x
const x = makeObject(a);
<div>{x}</div>;
// y should depend on `x` and `b`
const y = x.foo(b);
return y;
}