useReducer hook complete explanation | React official docs full walkthrough guide

Veröffentlicht am: 26 Oktober 2022
auf dem Kanal: xplodivity
336
18

In this video I go through the entire information provided about the useReducer hook in the official react documentation.

0:00 - Intro
0:37 - What is useReducer and reducer?
3:35 - how useReducer works + example
06:18 - visualising difference between useState and useReducer
08:39 - how to access state in reducer function
09:09 - what is dispatch, its use and how to use it
13:56 - writing logic for reducer function
19:06 - imp Note for dispatch
20:16 - ways to specify initial state in useReducer
20:40 - state initialization comparison with redux
21:44 - lazy initialization
25:38 - bailing out of a dispatch
27:16 - performance benefit of useReducer
30:41 - End


Auf dieser Seite können Sie das Online-Video useReducer hook complete explanation | React official docs full walkthrough guide mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer xplodivity 26 Oktober 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 336 Mal angesehen und es wurde von 18 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!