關於這一集
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
本 Podcast 中的其他單集
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-side…
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 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 writt…
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 - A…
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 e…
免責聲明: 本頁面嵌入的 Podcast 和封面圖片來自 Sam Selikoff, Ryan Toronto,歸其所有者所有,與 Listen Notes, Inc. 無關聯,也未獲得 Listen Notes, Inc. 背書。