1. 19
    Pass React Components a useTransition-Wrapped, State-Setting, Callback
    3m 8s

Pass React Components a useTransition-Wrapped, State-Setting, Callback

Share this video with your friends

Send Tweet

The useState functions we wrap in useTransition function wrappers can be passed around to components like any callback. Instead of making all of your components aware of Concurrent Mode, you can provide wrapped callbacks and continue compatibility with both legacy and future React code.

ed leach
ed leach
~ 4 years ago

"At this point, you know everything that anyone knows about React Suspense" (!!!) I suspect that is not exactly true, but it's good to hear.

Michael Chan
Michael Chan(instructor)
~ 4 years ago

ha! truth. I should have said "now you know all of the APIs around React Suspense". this would have been more accurate, as only a handful of people who know significantly more about the implementation.