Artwork

Innehåll tillhandahållet av Frontend First, Sam Selikoff, and Ryan Toronto. Allt poddinnehåll inklusive avsnitt, grafik och podcastbeskrivningar laddas upp och tillhandahålls direkt av Frontend First, Sam Selikoff, and Ryan Toronto eller deras podcastplattformspartner. Om du tror att någon använder ditt upphovsrättsskyddade verk utan din tillåtelse kan du följa processen som beskrivs här https://sv.player.fm/legal.
Player FM - Podcast-app
Gå offline med appen Player FM !

Render props

34:43
 
Dela
 

Manage episode 438402423 series 1635850
Innehåll tillhandahållet av Frontend First, Sam Selikoff, and Ryan Toronto. Allt poddinnehåll inklusive avsnitt, grafik och podcastbeskrivningar laddas upp och tillhandahålls direkt av Frontend First, Sam Selikoff, and Ryan Toronto eller deras podcastplattformspartner. Om du tror att någon använder ditt upphovsrättsskyddade verk utan din tillåtelse kan du följa processen som beskrivs här https://sv.player.fm/legal.

Sam and Ryan talk about render props in React. They discuss where they came from, how Hooks superseded them for sharing stateful logic, how data attributes compare to them for customizing styling, and how for certain complex components like forms they're still a great solution for accessing slices of internal state.

Timestamps:

  • 0:00 - Intro
  • 3:40 - Where did render props come from?
  • 6:01 - How hooks replaced many use cases for render props
  • 8:14 - Using render props for custom styling
  • 10:32 - Data attributes vs. render props for custom styling
  • 16:43 - Using render props to peek into an uncontrolled component's internal state
  • 21:05 - Forms example and using render props for a smaller public API
  • 24:10 - React docs mention of render props
  • 25:48 - Where render props shine

Links:

  continue reading

201 episoder

Artwork

Render props

Frontend First

214 subscribers

published

iconDela
 
Manage episode 438402423 series 1635850
Innehåll tillhandahållet av Frontend First, Sam Selikoff, and Ryan Toronto. Allt poddinnehåll inklusive avsnitt, grafik och podcastbeskrivningar laddas upp och tillhandahålls direkt av Frontend First, Sam Selikoff, and Ryan Toronto eller deras podcastplattformspartner. Om du tror att någon använder ditt upphovsrättsskyddade verk utan din tillåtelse kan du följa processen som beskrivs här https://sv.player.fm/legal.

Sam and Ryan talk about render props in React. They discuss where they came from, how Hooks superseded them for sharing stateful logic, how data attributes compare to them for customizing styling, and how for certain complex components like forms they're still a great solution for accessing slices of internal state.

Timestamps:

  • 0:00 - Intro
  • 3:40 - Where did render props come from?
  • 6:01 - How hooks replaced many use cases for render props
  • 8:14 - Using render props for custom styling
  • 10:32 - Data attributes vs. render props for custom styling
  • 16:43 - Using render props to peek into an uncontrolled component's internal state
  • 21:05 - Forms example and using render props for a smaller public API
  • 24:10 - React docs mention of render props
  • 25:48 - Where render props shine

Links:

  continue reading

201 episoder

Alla avsnitt

×
 
Loading …

Välkommen till Player FM

Player FM scannar webben för högkvalitativa podcasts för dig att njuta av nu direkt. Den är den bästa podcast-appen och den fungerar med Android, Iphone och webben. Bli medlem för att synka prenumerationer mellan enheter.

 

Snabbguide

Lyssna på det här programmet medan du utforskar
Spela