7 lines
143 B
JavaScript
7 lines
143 B
JavaScript
// @validateRefAccessDuringRender
|
|
function Component(props) {
|
|
const ref = useRef(null);
|
|
ref.current = props.value;
|
|
return ref.current;
|
|
}
|