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
相关文章
相关标签/搜索