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

Комментарии • 10

  • @jasmeetkaur-py6pi
    @jasmeetkaur-py6pi 6 дней назад +1

    Amazing video! thank you!

  • @Cambo_Recap
    @Cambo_Recap Месяц назад +1

    thank you

  • @yasminsoso-cf4ij
    @yasminsoso-cf4ij 5 месяцев назад +3

    nice explanation🤩

  • @neontuts5637
    @neontuts5637 Год назад +2

    Thanks for sharing. Please can you make a video on NextJS 13.

    • @MaxProgramming
      @MaxProgramming  Год назад +1

      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

    • @neontuts5637
      @neontuts5637 Год назад +1

      @@MaxProgramming The App Directory.

  • @faaizmir7504
    @faaizmir7504 8 месяцев назад +1

    which version of react is it?
    i am trying it with 18.2.0 but its useLocalStorage isnt working

    • @MaxProgramming
      @MaxProgramming  8 месяцев назад

      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?