React16.7 hooks初探之定时器引起的问题

前言 周末尝试了一下React新的hooks功能,来封装一个组件,遇到一个bug,因此记录一下过程!javascript 报错以下: 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 applic
相关文章
相关标签/搜索