DiscoverFrontend FirstuseAnimatedText | Events vs. State Changes | Catalyst
useAnimatedText | Events vs. State Changes | Catalyst

useAnimatedText | Events vs. State Changes | Catalyst

Update: 2024-10-24
Share

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:

Comments 
loading
00:00
00:00
1.0x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

useAnimatedText | Events vs. State Changes | Catalyst

useAnimatedText | Events vs. State Changes | Catalyst

Frontend First