JSTQL-JS-Transform/output_testing/1074error.invalid-props-mutation-in-effect-indirect.js

9 lines
203 B
JavaScript
Raw Normal View History

function Component(props) {
const mutateProps = () => {
props.value = true;
};
const indirectMutateProps = () => {
mutateProps();
};
(() => indirectMutateProps()) |> useEffect(%, []);
}