mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
10 lines
186 B
JavaScript
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;
|
|
}
|