JSTQL-JS-Transform/output_testing/994destructure-object-declaration-to-context-var.js

19 lines
273 B
JavaScript
Raw Normal View History

import { identity } from "shared-runtime";
function Component(props) {
let {
x
} = props;
const foo = () => {
x = props.x |> identity(%);
};
foo();
return {
x
};
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
x: 42
}]
};