Simplify Your React Forms with useReducer Hooks: Easy Refactoring Tutorial
Автор: Web Dev Fuel
Загружено: 2021-09-02
Просмотров: 3594
Описание:
In this video you'll learn how to refactor a login form to useReducer from useState, which will make it easier for you to manage complex state inside your React applications.
Learn how to build full-stack web applications with JavaScript and React: • Build Your Own PERN Stack Todo List App wi...
00:00 Introduction
01:37 Define initialState object
02:21 Import useReducer from react
02:35 Create the reducer
06:42 Add the useReducer hook with reducer and initialState
07:46 Update input values
08:22 Update onChange with dispatch function
10:32 Update alert with useReducer state values
11:22 Test the refactoring
11:43 Conclusion
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: