JSTQL-JS-Transform/output_testing/609error.invalid-set-and-read-ref-during-render.js

5 lines
No EOL
113 B
JavaScript

function Component(props) {
const ref = null |> useRef(%);
ref.current = props.value;
return ref.current;
}