mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
7 lines
113 B
JavaScript
7 lines
113 B
JavaScript
// @debug
|
|
function Component(props) {
|
|
const ref = useRef(null);
|
|
const value = ref.current;
|
|
return value;
|
|
}
|