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

8 lines
No EOL
149 B
JavaScript

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