JSTQL-JS-Transform/output_testing/1113useMemo-independently-memoizeable.js

9 lines
No EOL
213 B
JavaScript

function Component(props) {
const [a, b] = (() => {
const items = [];
const a = props.a |> makeObject(%);
const b = props.b |> makeObject(%);
return [a, b];
}) |> useMemo(%);
return [a, b];
}