useReducer | React Hooks Tutorial #6

preview_player
Показать описание
In this episode of my React Hooks Tutorial, we will dive into the useReducer hook and explore, how to use it. We will learn about the dispatch function as well as the action object. We will also learn how does useReducer differ from useState and why we should use it in more complex applications.

Starting repository:

Ending repository:

Timestamps:

►0:00 Introduction
►0:12 Importing the useReducer hook
►0:25 Explaining how useReducer works
►1:43 Creating reducer with initial state
►2:22 Creating action handlers
►4:08 Calling the useReducer hook
►5:00 Dispatching actions
►6:36 Ending

Social Media:

Рекомендации по теме
Комментарии
Автор

Thanks for your help, this is really useful! Plz continue to make more videos about Frontend. :)

大盗江南
Автор

its actually very good set of tutorials. with very informative explanations etc. not sure why it has to few views. the only thing is feels not good to write all the stuff in one file. why to not create a new file for each examples. its create a lot of distractions having all the code in 1 place.

userman