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