Creating a custom hook in React to store state in local storage, synchronize it across browser tabs, and have its value retrieved on page refresh. We will be looking at a form input as well as how you could use this technique to create a persistent Dark Mode on your website.
- Video: https://youtu.be/BAf0uhKVHBk
- Library demo based on: https://github.com/astoilkov/use-local-storage-state