awesome-interview icon indicating copy to clipboard operation
awesome-interview copied to clipboard

React Hooks 实现原理 | HZFE - 剑指前端 Offer

Open utterances-bot opened this issue 5 years ago • 2 comments

React Hooks 实现原理 | HZFE - 剑指前端 Offer

相关问题

https://febook.hzfe.org/awesome-interview/book3/frame-react-hooks

utterances-bot avatar Oct 21 '21 09:10 utterances-bot

在每个状态 Hook(如 useState)节点中,会通过 queue 属性上的循环链表记住所有的更新操作,并在 updade 阶段依次执行循环链表中的所有更新操作,最终拿到最新的 state 返回。

typo: updade => update

babopo avatar Oct 21 '21 09:10 babopo

学到了

kl404 avatar Feb 07 '25 06:02 kl404