Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let dataFetchedFromRemote = {
name:"ABC corp",
address: "4090 Shady Pines Drive Independence VA",
postalCode: "24348"
localStorage.setItem('companyInfo', JSON.stringify(dataFetchedFromRemote))
//Before setting item in localStorage, you have to make the data string.
//this code stores the dataFetchedFromRemote in the user's client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.