資料來源:Refs and the Dom @ React Docs. ... 中;在 componentDidMount 或 componentDidUpdate 之前更新ref;並且在unmount 時將其設為 null 。
確定! 回上一頁