Files
react/compiler/crates/react_hermes_parser/tests/fixtures/function-expression-with-store-to-parameter.js
2024-04-02 16:49:31 -07:00

10 lines
186 B
JavaScript

function Component(props) {
const mutate = (object, key, value) => {
object.updated = true;
object[key] = value;
};
const x = makeObject(props);
mutate(x);
return x;
}