Learn How to Use Local Storage in React With an Easy-to-Understand Example
HTML-код
- Опубликовано: 27 июн 2024
- Hello, my friends and fellow developers!
In this video, we cover how you can use local storage in your React app! Most importantly, we cover 2 ways to do so. The proper way to do it is the second way...
Let me know in the comments below if you want more React.js content or something else.
Links mentioned in the video:
Local Storage in JavaScript: • Learn localStorage in ...
Boilerplate code: stackblitz.com/edit/vitejs-vi...
GitHub Repo: github.com/max-programming/di...
usehooks-ts site: usehooks-ts.com
🔥 Timestamps Start 🔥
0:00 - Intro & Demo
1:28 - Local Storage in Devtools
1:40 - Setting item in Local Storage
2:28 - Catching and fixing the bug
4:06 - Read date from Local Storage
6:01 - Using a custom hook through a library
8:25 - Outro
🔥 Timestamps End 🔥
Other Tutorials:
⚛️ React and Material UI Todo App: bit.ly/reactmattodo
🟨 Other JavaScript videos: bit.ly/jstutorials
📘 Visual Studio Code videos: bit.ly/vscodevids
🔋 Build a Battery App in JS: • 🔋 Build a Battery Info...
Connect 🔗 :
Twitter: / maxprogramming1
Facebook: / max-programming-103081...
GitHub: github.com/max-programming/
VS Code Theme used: ⚛️ Atom One Dark
Suggest, ask doubts in the comments and share these videos to help!
Thanks for Watching!
#reactjs #javascript #coding #programming
Amazing video! thank you!
thank you
nice explanation🤩
Thanks for sharing. Please can you make a video on NextJS 13.
Yeah sure! I really want to make a video on it but having a hard time choosing a particular topic in Next 13.
What would you like to see in particular
@@MaxProgramming The App Directory.
which version of react is it?
i am trying it with 18.2.0 but its useLocalStorage isnt working
It's the same React version 18.2.
There might be a typo or something. Can you share your code or some error you receive?