mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
14 lines
235 B
JavaScript
14 lines
235 B
JavaScript
function foo(a, b, c) {
|
|
// Construct and freeze x, y
|
|
const x = makeObject(a);
|
|
const y = makeObject(a);
|
|
<div>
|
|
{x}
|
|
{y}
|
|
</div>;
|
|
|
|
// z should depend on `x`, `y.method`, and `b`
|
|
const z = x[y.method](b);
|
|
return z;
|
|
}
|