关于这一集
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:
英语
美国
文字稿 🔗
Are you the producer of this podcast?
Add a podcast transcript
Need Audio-to-Text?
Transcribe with Listen411 in Just 60 Seconds
本播客中的其他单集
Sam and Ryan talk about what sorts of capabilities a tool should have to be considered a web framework. They discuss how frameworks tackle the complexity of getting different systems to communicate with each other, how good frameworks embrace the strengths and patterns of the language they're wri...
Sam joins Lane Wagner in a crossover episode with the Backend Banter podcast. They talk about abstractions in frontend and backend frameworks, what JavaScript is doing differently from other languages and frameworks, why the frontend should drive the backend even if you're building in a server-si...
Sam and Ryan discuss the new features in React 19 that will specifically benefit developers building single-page applications. They talk about how Suspense and Transitions let developers "teach" React about when their apps are in a loading or a pending state, how Client Actions improve upon using...
Sam and Ryan read and discuss a fantastic interactive blog post about queueing in HTTP written by Sam Rose.
Timestamps:
0:00 - Intro
6:57 - Queueing: An interactive study of queueing strategies
9:05 - Why do we need queues?
13:16 - FIFO and timing out
17:55 - LIFO
20:58 - Priority queues
25:21 -...
Sam and Ryan talk about the pattern of building unstyled components with React. They discuss why unstyled components were created, how they improve upon composition patterns from UI libraries like Bootstrap, how they can be used to share behavior and logic without prescribing any styling opinions...
免责声明: 本页面嵌入的播客和封面图片来自 Sam Selikoff, Ryan Toronto,归其所有者所有,与 Listen Notes, Inc. 无关联,也未获得 Listen Notes, Inc. 背书。