Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sandiiarov/use-events
🍭 Event hooks
https://github.com/sandiiarov/use-events
Last synced: about 2 months ago
JSON representation
🍭 Event hooks
- Host: GitHub
- URL: https://github.com/sandiiarov/use-events
- Owner: sandiiarov
- Created: 2018-11-01T01:31:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T10:53:06.000Z (3 months ago)
- Last Synced: 2024-09-16T12:27:09.919Z (3 months ago)
- Language: TypeScript
- Homepage: https://sandiiarov.github.io/use-events
- Size: 3.53 MB
- Stars: 492
- Watchers: 5
- Forks: 16
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- fucking-awesome-react-hooks - `use-events`
- awesome-starred-test - sandiiarov/use-events - 🍭 Event hooks (TypeScript)
- awesome-github-star - use-events
- awesome-react-hooks-cn - `use-events`
- awesome-react-hooks - `use-events`
- awesome-react-hooks - `use-events`
- awesome-react-hooks - use-events - 🍭 Event hooks (Packages)
README
![npm](https://img.shields.io/npm/dt/use-events.svg)
![npm](https://img.shields.io/npm/v/use-events.svg)
![NpmLicense](https://img.shields.io/npm/l/use-events.svg)**Use Events** - Events turned into React Hooks.
Read about [Hooks](https://reactjs.org/docs/hooks-intro.html) feature.## Documentation
https://sandiiarov.github.io/use-events
### List of hooks
- [useActive](https://sandiiarov.github.io/use-events/#/docs-use-active)
- [useClickOutside](https://sandiiarov.github.io/use-events/#/docs-use-click-outside)
- [useFocus](https://sandiiarov.github.io/use-events/#/docs-use-focus)
- [useHover](https://sandiiarov.github.io/use-events/#/docs-use-hover)
- [useMousePosition](https://sandiiarov.github.io/use-events/#/docs-use-mouse-position)
- [useTouch](https://sandiiarov.github.io/use-events/#/docs-use-touch)
- [useWindowResize](https://sandiiarov.github.io/use-events/#/docs-use-window-resize)
- [useResizeObserver](https://sandiiarov.github.io/use-events/#/docs-use-resize-observer)## Installation
> Note: React 16.8+ is required for Hooks.
### With npm
```sh
npm i use-events
```### Or with yarn
```sh
yarn add use-events
```