Everyone's sidestepping useEffect. Is everyone wrong, or is it React?

1:07:06
 
分享
 

Manage episode 261831526 series 1635850
由Player FM以及我们的用户群所搜索的Frontend First, Sam Selikoff, and Ryan Toronto — 版权由出版商所拥有,而不是Player FM,音频直接从出版商的伺服器串流. 点击订阅按钮以查看Player FM更新,或粘贴收取点链接到其他播客应用程序里。

Sam and Ryan grapple with the way useEffect nudges you to build UIs. They discuss whether JavaScript object identity is a good proxy to use for business logic equivalence, whether useEffect leads to more correct code, and then they chat about some of the ways React developers sidestep useEffect when the declarative programming model that Hooks impose upon them is not a good fit with their app's business logic.

Topics include:

- 11:39 – JavaScript identity vs. business logic identity when working with useEffect

121集单集