A robust collection of fully type-safe React hooks designed to accelerate development and enrich user experience with open-source collaboration.
hooked-on-react
is an open-source library offering a suite of React hooks that address common development scenarios. The hooks provided by this library are crafted with type safety and best practices in mind, ensuring that they can be quickly integrated into any project to streamline development.
- Documentation Site: For detailed usage and examples, visit the hooked-on-react documentation.
- Documentation Repo: The documentation repository is where you can contribute to the project's documentation.
- GitHub Repo: Check out the source code on GitHub.
To start using the hooks in your project, install the package using npm or yarn:
npm install hooked-on-react
# or
yarn add hooked-on-react
`hooked-on-react`` is continuously growing. Here are some hooks currently available:
useDebounce: Delay execution of value changes to improve performance. useClickOutside: Respond to clicks outside a specified element, useful for modals and dropdowns. useCopyText: Copy text to the clipboard. useLocalStorage: Store, retrieve and delete values from local storage. useCountdown: Useful countdown timer providing ability to get he current time, add to it, subtract from it and more. ... and many more to come!
Your contributions are welcome! Whether it's suggesting new hooks, reporting issues, or improving existing ones, feel free to open an issue or submit a pull request on GitHub. Enhancing the docs could be a great intro to open source for first time contributors. Head over to the docs repo to get started.
hooked-on-react
is made available under the MIT License. Feel free to use, modify, and distribute it as part of your open-source or commercial projects.