const inputRef = useRef() const handleClick= () => { inputRef.current.value.reset(); return "hello world" } return ( <> <input type="text" ref={inputRef}/> ...
確定! 回上一頁