useReducer | React Hooks Tutorial #6

Published: 07 April 2021
on channel: Philip Fabianek
1,198
42

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:

https://github.com/philipfabianek/rea...

Ending repository:

https://github.com/philipfabianek/rea...

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:

►Twitter:   / philip_fabianek  
►LinkedIn:   / philip-fabianek  
►Website: http://www.philipfabianek.com
►GitHub: https://github.com/philipfabianek


On this page of the site you can watch the video online useReducer | React Hooks Tutorial #6 with a duration of hours minute second in good quality, which was uploaded by the user Philip Fabianek 07 April 2021, share the link with friends and acquaintances, this video has already been watched 1,198 times on youtube and it was liked by 42 viewers. Enjoy your viewing!