mirror of
https://github.com/facebook/react.git
synced 2026-02-26 05:35:21 +00:00
6 lines
109 B
JavaScript
6 lines
109 B
JavaScript
function Component(props) {
|
|
const ref = useRef(null);
|
|
ref.current = props.value;
|
|
return ref.current;
|
|
}
|