9 lines
195 B
JavaScript
9 lines
195 B
JavaScript
|
function Component(props) {
|
||
|
const mutate = (object, key, value) => {
|
||
|
object.updated = true;
|
||
|
object[key] = value;
|
||
|
};
|
||
|
const x = props |> makeObject(%);
|
||
|
x |> mutate(%);
|
||
|
return x;
|
||
|
}
|