4 new HOOKS APIs (useSyncExternalStore) concurrent rendering in REACT 18
Improve the performance of your App by using these 4 hooks.
Hi everyone! In today's video, I am going to give you an intro to 4 new API hooks React has introduced in its latest version. React 18.
These APIs will only be available if we upgrade React and use the new Root API. If you don't know how to upgrade to React 18, check this video:
https://www.youtube.com/watch?v=9uXq0sH_zsc&t=3s
useTransition() and startTransition() - Transitions allow us to split a state update into an urgent and no urgent part, the transition part. React will interrupt the transition state updates and update the urgent updates first.
useDeferredValue() -Works similarly, but it's mainly useful when we work with external libraries that we don't have control over the setState.
useId() - We can use it to generate unique IDs on the client and server.
useSyncExternalStore() - Recommended for any state management library to make it easier to integrate with React.
Don't forget to subscribe to my channel to be up to date with everything that is going on with React.
-
27:50
Time to Code with Ali
1 year ago $0.01 earnedBuild a Next.js 13 APP with TypeScript
1931 -
13:46
Tactical Advisor
1 day agoCan a Gun This Small Be Any Good? Smith & Wesson Bodyguard 2.0
4.94K4 -
59:51
Trumpet Daily
23 hours agoWhat Is Kamala Harris Trying to Say? - Trumpet Daily | Sept. 20, 2024
8.18K9 -
1:01:22
The Christopher Prosch Show
16 hours agoAre the National Polling Institutions lying to you!??
3.81K4 -
13:34
Ethical Preparedness
16 hours agoThe Cannibals Attack: The Fatal Cost He Paid in His Battle Against Marauders -Post Collapse Medicine
6.18K3 -
1:45
Memology 101
16 hours agoKamala's EX calls her critics MENTALLY ILL people who will end up "EATING OUT OF GARBAGE CAN[S]"
4.11K13 -
3:42
Brownells, Inc.
22 hours agoQuick Tip: The RIGHT Way To Use the Forward Assist
2.6K3 -
1:13:32
Bright Insight
14 hours agoAncient Apocalypse Season 2 UPROAR w/ Illegitimate Scholar
87.1K70 -
1:15:15
Havoc
17 hours agoTainted Careers & Tarnished Legacies | Stuck Off the Realness Ep. 14
138K20 -
1:05:33
Glenn Greenwald
1 day agoJournalist Chris Hedges on Media, Terror, Gaza, and More | SYSTEM UPDATE #338
124K165