KV Storage
localStorage
is…
- Good! It’s an incredibly easy API to use.
localStorage.setItem('name', 'Chris'); let name = localStorage.getItem('name');
…
localStorage
is a synchronous API that blocks the main thread, and any time you access it you potentially prevent