createRef (); } componentDidMount() { this.myRef.current.focus(); } render() { return ; } }. 当然还有最近react大力推崇的hooks:useRef
確定! 回上一頁