Artwork

内容由Frontend First, Sam Selikoff, and Ryan Toronto提供。所有播客内容(包括剧集、图形和播客描述)均由 Frontend First, Sam Selikoff, and Ryan Toronto 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

Key props vs. effects

1:09:17
 
分享
 

Manage episode 275538582 series 1635850
内容由Frontend First, Sam Selikoff, and Ryan Toronto提供。所有播客内容(包括剧集、图形和播客描述)均由 Frontend First, Sam Selikoff, and Ryan Toronto 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

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?

Links:

  continue reading

185集单集

Artwork

Key props vs. effects

Frontend First

197 subscribers

published

icon分享
 
Manage episode 275538582 series 1635850
内容由Frontend First, Sam Selikoff, and Ryan Toronto提供。所有播客内容(包括剧集、图形和播客描述)均由 Frontend First, Sam Selikoff, and Ryan Toronto 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

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?

Links:

  continue reading

185集单集

כל הפרקים

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南