JSTQL-JS-Transform/output_testing/920hook-noAlias.js

19 lines
337 B
JavaScript
Raw Normal View History

import { useNoAlias } from "shared-runtime";
function Component(props) {
const item = {
a: props.a
};
const x = useNoAlias(item, () => {
props |> console.log(%);
}, [props.a]);
return [x, item];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
a: {
id: 42
}
}],
isComponent: true
};