Usememo Usecallback
Usememo Usecallback
useMemo &
useCallback hooks
Uncommon Performance Hooks
Blocking Updates:
These are the ones that must happen right away, like when
you're typing in an input field. They're synchronous and need
to keep the UI responsive.
Non-blocking Updates:
By managing these two types effectively, you can keep your app
both interactive and efficient.
Introduction Contd.....
To handle those non-blocking updates gracefully, React offers
two handy tools:
useTransition Hook:
useDeferredValue Hook:
This one helps you delay updates that aren't critical, letting more
important updates happen first. It's a handy trick for optimizing
performance.
useTransition: useDeferredValue
It's your go-to when you This one's all about
want an update to play nice delaying non-urgent
with others, allowing them to updates, so the important
stuff gets attention first.
jump in while it's doing its
It's a smart move when
thing. This keeps your app
you need your app to be
feeling snappy.
both speedy and
responsive.
Stay tuned
🙏🏼
#Followformore
Code Examples coming soon