ReadingNotes

Local Storage And How To Use It On Websites

https://www.smashingmagazine.com/2010/10/local-storage-and-how-to-use-it/

Adding state to the web: Why of local storage.

The Dark Side Of Local Storage

Questions

  1. Storing information locally on a user’s computer is a powerful strategy for a developer who is creating something for the Web.
  2. Never store sensitive information in LocalStorage. This includes passwords, API Keys, authentication tokens like JWTs and financial information like credit card numbers, to name a few.This is info you should never store in local storage.
  3. LocalStorage always store key and value in string format. That is why you should convert your data to string whatever it is Array or Object. To Store data in localStorage first of all stringify it using JSON.stringify () method.