因为hooks可以处理多个互不相关的 local state 和每个生命周期函数中可能会包含着各种互不相关的逻辑,所以可以替代state
本文链接:https://www.modengshe.com/jiankangshenghuo/xinli/kz9vlk.html