用法. const renderCount = useRef(0);. useRef 只需要定義一個變數就好,而數值則會存在current 這個屬性, ... 以useEffect 代替componentDidMount.
確定! 回上一頁