localStorage is pretty much only thing we need these days.
> Except if you want to store objects/arrays/numbers (localStorage only supports strings)
My normal usage of localStorage usually looks like this:
const getItem = (item) => { JSON.parse(window.localStorage.getItem(item)) }
// and
const setItem = (item, val) { window.localStorage.setItem(item, JSON.stringify(val)) }
And then you won't have issues with any type.There's a case for something like http://pieroxy.net/blog/pages/lz-string/index.html
which can save up a lot of space
Will tackle a bit down the road.