Last active
July 6, 2022 15:12
-
-
Save pushkar100/2a9319b9b7d6cf0f294a3656b122c900 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* testing/src/helpers/index.js */ | |
// ... | |
const setTraysForId = (id, trays) => { | |
window.localStorage.setItem(`${id}`, JSON.stringify(trays)); | |
} | |
const getTraysForId = (id) => { | |
return JSON.parse(window.localStorage.getItem(`${id}`)); | |
} | |
export { /* ... */, setTraysForId, getTraysForId }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment