如果你使用與目前state 相同值來更新State Hook,React 將會跳過子component ... to the mounted text input element inputEl.current.focus(); }; return ( <> <input ...
確定! 回上一頁