JSTQL-JS-Transform/output_testing/1108useMemo-nested-ifs.js

13 lines
No EOL
253 B
JavaScript

function Component(props) {
const x = (() => {
if (props.cond) {
if (props.cond) {}
}
}) |> useMemo(%, [props.cond]);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: ["TodoAdd"],
isComponent: "TodoAdd"
};