use-haki
use-haki copied to clipboard
React Hooks Library 🐟
Hooks
-
useClickOutside
— allows you to detect clicks outside of a specified element. -
useEventListener
— provide a declarative hook for events listeners. -
useFetch
— hook for fetch requests. -
useGeoPosition
— gives device current location. -
useHelloRomanJoke
— fetch random Hello Roman joke. -
useHover
— detect mouse move on a specified element. -
useIdle
— tracks if user on the page is idle. -
useInterval
— provides setInterval in react hook. -
useKeyPress
— detect when user is pressing a specific key. -
useLocalStorage
— manage your local storage in easy way. -
useMousePosition
— tracks mouse position. -
usePageWidth
— gives current page width. -
useScrollPosition
— tracks scroll position. -
useToggle
— tracks toggle state. -
useUnsplash
— gives random image from Unsplash. -
useDateTimeFormat
— enable language-sensitive date formatting -
usePluralRules
— find ordinal for given number -
useIntersection
— use intersection observer listener in an easy way -
useMeasure
— gives sizes of an element and its position -
useTheme
— dynamically change the appearance of your app using CSS variables with light/dark mode.
Technologies
-
React
-
TypeScript
-
Microbundle
-
CircleCI
-
Eslint & Prettier
-
Husky & Lint-staged
-
React Testing Library & React Hooks Testing Library
-
Github Actions
Contributors
Thanks goes to these wonderful people (emoji key):
Olaf Sulich 💻 🚧 ⚠️ 🤔 |
Adrian Wloszynski 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Issues
Looking to contribute? Look for the Good First Issue label.
🐛 Bugs
Please file an issue for bugs, missing documentation, or unexpected behavior.
💡 Feature Requests
Please file an issue to suggest new features/hooks. Vote on feature requests by adding a 👍. This helps me prioritize what to work on.
❓ Questions
For questions related to using the library, you can raise issue here, or send me an email: [email protected]