JSTQL-JS-Transform/output_testing/590nested-scopes-hook-call.js

7 lines
No EOL
127 B
JavaScript

function component(props) {
let x = [];
let y = [];
props.foo |> useHook(%) |> y.push(%);
y |> x.push(%);
return x;
}