📜  useref 材料 ui - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:28.447000             🧑  作者: Mango

代码示例1
// 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 (
    
); }