useAnimatedText | Events vs. State Changes | Catalyst - podcast episode cover

useAnimatedText | Events vs. State Changes | Catalyst

Oct 24, 20241 hr 8 minEp. 198
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Sam and Ryan talk about building a useAnimatedText hook that can animate streaming text. They also discuss how React code that uses state changes to approximate events can be simplified, and the benefits of having escape hatches when building UI with Catalyst.

Timestamps:

  • 0:00 - Intro
  • 1:22 - Catalyst and escape hatches
  • 16:03 - Building a useAnimatedText hook (aka useBufferedText)
  • 54:10 - Avoiding using state changes to approximate events

Links:

For the best experience, listen in Metacast app for iOS or Android