Key props vs. effects


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

Sam and Ryan talk about how both the key prop and useEffect can be used to solve similar problems, and discuss which approach is better. They also talk about the difference between handling data using models with methods vs. using POJOs with pure functions.

Topics include:

  • 0:34 – Model with methods vs POJOs with functions
  • 16:44 – Comparing explicit, verbose code in React vs. other frameworks
  • 29:34 – Dumb vs. smart components, and using keys vs. effects
  • 47:47 – If a high-level API misses enough use cases, should it even exist?