• v1.1.1 aa021eb39f

    CosmicCoder-sudo released this 2023-07-24 13:06:27 +03:00 | 75 commits to main since this release

    • New: Added the useLocalStorage hook to the library. This new hook simplifies working with the browser's localStorage.
    • The useLocalStorage hook 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 useLocalStorage changes, it is written to localStorage using the specified key.
    • The useLocalStorage hook is written in TypeScript and is well-tested.
    • Documentation and usage examples have been added to the README.md.
    Downloads