我們可以將初始值傳遞給useRef,它用於初始化可變ref對象公開的屬性。 ... Object is possibly 'null' }; return ( <> <input ref={inputEl} ...
確定! 回上一頁