The trick to using localStorage
to store and retrieve data, which I found here, is to JSON.stringify
your setItem
, and JSON.parse
your getItem
.
The trick to using localStorage
to store and retrieve data, which I found here, is to JSON.stringify
your setItem
, and JSON.parse
your getItem
.