evargast / signature-generator

https://evargast.github.io/signature-generator/
MIT License
2 stars 1 forks source link

Add useLocalStorage hook #34

Closed evargast closed 1 year ago

evargast commented 1 year ago
// localStorageKeys will be a key:value object that contains the localStorage keys such that they can be referenced from other files 
const localStorageKeys = {
    keyIWantToUse: 'this is the key'
} 

// ---- 
// otherFile.ts 

// other files can then reference this object like:
... 
useLocalStorage(localStorageKeys['keyIWantToUse']);