JSTQL-JS-Transform/output_testing/1067destructure-array-declaration-to-context-var.js

17 lines
284 B
JavaScript
Raw Normal View History

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