JSTQL-JS-Transform/output_testing/1096useEffect-external-mutate.js

13 lines
No EOL
201 B
JavaScript

import { useEffect } from "react";
let x = {
a: 42
};
function Component(props) {
(() => {
x.a = 10;
}) |> useEffect(%);
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: []
};