Render Props are Not Dead
summary
Argues that render props still win when the goal is injecting state inside JSX without forcing a whole-component rerender, shows converting HOC -> render props -> custom hook and back, and demonstrates a real failure mode: rapid updates trigger the triangle of death against a slow third-party component. Provides concrete code patterns, explains when to return objects vs tuples from hooks, and shows the render-prop wrapper that keeps heavy children from re-rendering while the state injection continues to work.
AI-written summary · about
chapters (11)
- 0:00Intro
- 2:28Mixins
- 3:02Hawks
- 6:28Render Prompts
- 9:56How do we know
- 13:28Hooks
- 16:55Function Component
- 17:35Recap
- 18:44Minihooks
- 21:50Conclusion
- 22:27Thank you
related talks
36mReusing Stateful Logic in React: HOC vs Render Props vs Hooks
23mDemystifying Higher order components and Render Props
22mPowering Code Reuse with Context and Render Props
33mReact Advanced Patterns
06mRender Props, PureComponent and Reactivity
28mThe State of React State in 2019
35mAdvanced patterns in building React Components
27mThe weird things about React
