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

8 lines
149 B
JavaScript
Raw Normal View History

function Component(props) {
const x = (() => {
if (props.cond) {
if (props.cond) {}
}
}) |> useMemo(%, [props.cond]);
return x;
}