Last active
October 18, 2020 02:00
-
-
Save tofusoup429/41e00ff9ac31af8a96fab88b4e96e449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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