React16.7初探之定時器引發的問題

前言 週末嘗試了一下React新的hooks功能,來封裝一個組件,遇到一個bug,所以記錄一下過程! 報錯如下: Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To
相關文章
相關標籤/搜索