10 lines
No EOL
264 B
JavaScript
10 lines
No EOL
264 B
JavaScript
function Component(props) {
|
|
let x = cond ? someGlobal : props.foo;
|
|
const mutatePhiThatCouldBeProps = () => {
|
|
x.y = true;
|
|
};
|
|
const indirectMutateProps = () => {
|
|
mutatePhiThatCouldBeProps();
|
|
};
|
|
(() => indirectMutateProps()) |> useEffect(%, []);
|
|
} |