Artwork

Nội dung được cung cấp bởi Frontend First, Sam Selikoff, and Ryan Toronto. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được Frontend First, Sam Selikoff, and Ryan Toronto hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.player.fm/legal.
Player FM - Ứng dụng Podcast
Chuyển sang chế độ ngoại tuyến với ứng dụng Player FM !

Render props

34:43
 
Chia sẻ
 

Manage episode 438402423 series 1635850
Nội dung được cung cấp bởi Frontend First, Sam Selikoff, and Ryan Toronto. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được Frontend First, Sam Selikoff, and Ryan Toronto hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.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

195 tập

Artwork

Render props

Frontend First

213 subscribers

published

iconChia sẻ
 
Manage episode 438402423 series 1635850
Nội dung được cung cấp bởi Frontend First, Sam Selikoff, and Ryan Toronto. Tất cả nội dung podcast bao gồm các tập, đồ họa và mô tả podcast đều được Frontend First, Sam Selikoff, and Ryan Toronto hoặc đối tác nền tảng podcast của họ tải lên và cung cấp trực tiếp. Nếu bạn cho rằng ai đó đang sử dụng tác phẩm có bản quyền của bạn mà không có sự cho phép của bạn, bạn có thể làm theo quy trình được nêu ở đây https://vi.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

195 tập

Tất cả các tập

×
 
Loading …

Chào mừng bạn đến với Player FM!

Player FM đang quét trang web để tìm các podcast chất lượng cao cho bạn thưởng thức ngay bây giờ. Đây là ứng dụng podcast tốt nhất và hoạt động trên Android, iPhone và web. Đăng ký để đồng bộ các theo dõi trên tất cả thiết bị.

 

Hướng dẫn sử dụng nhanh