JSTQL-JS-Transform/output_testing/998error.invalid-pass-ref-to-function.js

6 lines
143 B
JavaScript
Raw Normal View History

// @validateRefAccessDuringRender
function Component(props) {
const ref = null |> useRef(%);
const x = ref |> foo(%);
return x.current;
}