• 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
  • v1.0.2 ca13ad1104

    CosmicCoder-sudo released this 2023-07-24 11:05:33 +03:00 | 79 commits to main since this release

    This release includes the following improvements:

    • Updated useForm hook: Replaced default export with named export for useForm hook, improving import consistency across the library.

    • Enhanced type definitions: Added detailed TypeScript type definitions for useForm hook, enhancing type checking and IntelliSense in TypeScript projects.

    • Bug fixes and stability improvements: Fixed several minor bugs and improved the overall stability of the library.

    Please see the individual commit messages for more detailed information about the changes.

    Downloads
  • v1.0.1 5ac9f5a8ca

    CosmicCoder-sudo released this 2023-07-19 14:18:32 +03:00 | 83 commits to main since this release

    Release Description:

    Added a new function, useForm, to simplify form state management in React applications.
    useForm allows easy tracking of form state, handling input changes, and form resetting.
    The useForm function takes an initial form state object as an argument and returns an object with the current form state, a function to handle input changes, and a function to reset the form.
    An example usage of the useForm function is provided in the project documentation.
    We believe that the addition of the useForm function will greatly simplify form state management in your projects and help you develop more efficient and user-friendly forms.

    Downloads