-
released this
2023-07-24 13:06:27 +03:00 | 75 commits to main since this release- New: Added the
useLocalStoragehook to the library. This new hook simplifies working with the browser's localStorage. - The
useLocalStoragehook automatically updates components when the data in localStorage changes. It accepts a key and an initial value as arguments. - Upon component mount, the hook reads the value from localStorage using the specified key. If the value is not found, the initial value is used.
- When the value of
useLocalStoragechanges, it is written to localStorage using the specified key. - The
useLocalStoragehook is written in TypeScript and is well-tested. - Documentation and usage examples have been added to the README.md.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- New: Added the