Загрузка...

useState | React Hooks Tutorial #3

In this episode of my React Hooks Tutorial, we will dive into the useState hook and explore, how to use it. We will learn about the two ways how we can update state based on previous state and which is the correct one. We will also learn how we can merge state objects using the object spread syntax, since this functionality isn't a part of the useState hook by default.

Starting repository:

https://github.com/philipfabianek/react-hooks-tutorial/tree/Episode2

Ending repository:

https://github.com/philipfabianek/react-hooks-tutorial/tree/Episode3

Timestamps:

►0:00 Introduction
►0:12 Importing the useState hook
►0:47 Calling the useState hook
►1:26 Using array destructuring the access useState value and update function
►2:04 Updating the state value
►3:27 The correct way of updating the state value
►4:50 Merging state object while using useState
►7:45 Ending

Social Media:

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

Видео useState | React Hooks Tutorial #3 канала Philip Fabianek
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять