JSTQL-JS-Transform/output_testing/1137drop-methodcall-usememo.js

15 lines
285 B
JavaScript
Raw Normal View History

import * as React from "react";
function Component(props) {
const x = (() => {
const x = [];
props.value |> x.push(%);
return x;
}) |> React.useMemo(%, [props.value]);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
value: 42
}]
};