Custom React Hook for Local Storage

Описание к видео Custom React Hook for Local Storage

Learn how to write a custom react hook that will persist your state in local storage and will gracefully fallback to a default when it encounters unexpected values.


Chapters:

00:00 - Project Intro
01:10 - Project Setup
03:00 - Setting up state and callbacks
07:00 - Creating helper functions
11:15 - Creating useLocalStorageState hook
15:42 - Using useLocalStorageState hook
16:31 - Final demo
17:11 - When to use this hook

Комментарии

Информация по комментариям в разработке