filmov
tv
Exercises: useReducer Hook - React In Depth

Показать описание
Let's go through some exercises on the useReducer hook in React together.
We start with a warmup to recap what a reducer function is in general, in the context of Array reduce.
Then we look at our first exercise where we create a Counter component where all the button actions are tied to a reducer.
For the second exercise, we recreate the counter from exercise 1, but with the added complexity of prop drilling to custom Button components instead.
To wrap up the video, we look at some ways we can use the useReducer hook to help manage form state in our applications.
Chapters:
00:00 Introduction
00:28 Warmup Exercise - Array Reduce
04:54 Exercise 1 - Counter Reducer
19:10 Exercise 2 - Dispatch Props
39:46 Exercise 3 - Form
1:11:01 Next Steps
We start with a warmup to recap what a reducer function is in general, in the context of Array reduce.
Then we look at our first exercise where we create a Counter component where all the button actions are tied to a reducer.
For the second exercise, we recreate the counter from exercise 1, but with the added complexity of prop drilling to custom Button components instead.
To wrap up the video, we look at some ways we can use the useReducer hook to help manage form state in our applications.
Chapters:
00:00 Introduction
00:28 Warmup Exercise - Array Reduce
04:54 Exercise 1 - Counter Reducer
19:10 Exercise 2 - Dispatch Props
39:46 Exercise 3 - Form
1:11:01 Next Steps
Exercises: useReducer Hook - React In Depth
useReducer Hook - React In Depth
useReducer is BETTER than useState | React Hook useReducer Tutorial
React useReducer Hook
How to use the useReducer Hook - Better than useState for managing objects, arrays or complex data
Introduction to React #11 | useReducer
React useReducer Simplified // Professional ReactJS
Custom State Machine Hook with useReducer & useEffect
🚀🎣 Mastering UseReducer() in React Hooks 2024
All React Hooks Explained in 2 Hours | Complete React Hooks Tutorial with Example 2024
React Hooks | useReducer | ReactJS tutorial
094 - Exercise: useReducer hook
10 React Hooks Explained // Plus Build your own from Scratch
Understanding All React 18 Hooks In Depth - For Beginners [#4] - useReducer()
Exercises: useContext Hook - React In Depth
One Minute React : Ep 6 : useReducer
Implement UseReducer in React | react js complete tutorial | react js full course
Function Reducer
004 4 Advanced react hooks usecontext usereducer
React Hooks useReducer Hook #11
React JS Course | 20 - useReducer Hook
React hooks 8 - using multiple useReducer and useReducer with useContext
React Hooks useContext Hook and useReducer Hook #20
How to Handle input box with React JS using useReducer hook | Part 2 #bharathedutech
Комментарии