JSTQL-JS-Transform/output_testing/943useMemo-inverted-if.js

17 lines
300 B
JavaScript
Raw Normal View History

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