JSTQL-JS-Transform/output_testing/464error.todo.destructure-assignment-to-context-var.js

11 lines
134 B
JavaScript
Raw Normal View History

function useFoo(props) {
let x;
[x] = props;
const foo = () => {
x = props |> getX(%);
};
foo();
return {
x
};
}