Frontend First cover image

Frontend First

Key props vs. effects

Oct 28, 2020
01:09:17

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:

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode