textInput.current.focus(); } render() { // 告訴React 我們想要將<input> ref // 和我們在constructor 產生的`textInput` 連結 return ( <div> <input type="text" ...
確定! 回上一頁