Components as Units of Work
summary
Claim: components serve as small units of work that encapsulate lifecycle logic instead of just UI. Uses React plus simple intervals and instance flags to check deployed version and force a reload when client and server versions diverge, demonstrating a concrete, working version-check and refresh component that returns null or a refresh element. Shows patterns like returning null from render and use keys to remount, cites React Router’s Redirect and an internal lifecycle helper, and suggests hooks map cleanly to this idea.
AI-written summary · about
chapters (11)
- 0:00Intro
- 0:24Who am I
- 0:41Components
- 0:52Component Functionality
- 1:26How to orchestrate functionality
- 1:47Using components
- 2:07Using hooks
- 2:27Using keys
- 2:46Using logic
- 3:46Redirect
- 4:28React Doc
related talks
44mWriting good components
22mComponents are the New Thin Clients
40mManaging Complex State in React
25mSimply React
27mUp and Running with Universal Components
25mReact x Web Components : How It Is and How It Could Be
37mBuilding Better Components — A Journey to a More Resilient Frontend
01h 04mWhat makes React different?
