mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
5 lines
94 B
JavaScript
5 lines
94 B
JavaScript
function Component(props) {
|
|
const ref = useRef(null);
|
|
return <Foo ref={ref.current} />;
|
|
}
|