6 lines
No EOL
147 B
JavaScript
6 lines
No EOL
147 B
JavaScript
// @validateRefAccessDuringRender
|
|
function Component(props) {
|
|
const ref = null |> useRef(%);
|
|
ref.current = props.value;
|
|
return ref.current;
|
|
} |