📅  最后修改于: 2022-03-11 15:01:28.447000             🧑  作者: Mango
// Using the useRef() hook. Only possible when you're using a function component.
const App = () => {
const textRef = useRef();
const showRefContent = () => {
console.log(textRef.current.value);
};
return (
);
}