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.
-
51:49
Time to Code with Ali
1 year ago $0.06 earnedHow to Build a Word Scramble Game with React (Step by Step) (JAVASCRIPT)
5052 -
1:36:32
Glenn Greenwald
11 hours agoIs Kamala Harris "Working Tirelessly" for a Cease-Fire in Gaza?; Jonathan Turley on Free Speech; Richard Medhurst on his UK Arrest | System Update #318
120K107 -
2:21:37
WeAreChange
11 hours agoWARNING: DNC To Be Designated Monkeypox Spreader Event??
102K18 -
LIVE
Right Side Broadcasting Network
3 days agoLIVE: President Trump Delivers Remarks on Crime and Safety in Howell, MI - 8/20/24
3,560 watching -
5:53:27
SNEAKO
16 hours agoIslam vs Christianity Debate: Muslim Lantern VS Andrew Wilson - Trinity and Age of Consent
221K586 -
1:13:29
Redacted News
13 hours agoTime's UP! PUTIN is PREPPING something big with Ukraine, RFK to drop out of race | Redacted News
186K347 -
56:40
Officially Unfollowed
15 hours agoEp. 4 | DNC Kickoff, Kamala’s Poll Struggles, & Don Lemon’s New Gig
79.8K23 -
1:17:52
Awaken With JP
1 day agoAll She Wants is Communism - LIES Ep. 52
132K135 -
2:25:57
Breaking Points
16 hours ago8/20/24: DAY 2 - LIVE FROM THE DNC!
92.9K36 -
23:36
CartierFamily
15 hours agoLiberal Media TURNS On Kamala as Republicans Humiliate Woke Democrats!
81.5K50