Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Latest commit

 

History

History
51 lines (32 loc) · 1.43 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.43 KB

Preact Hooks - Event

Inspired by donovan/use-event-listener

version MIT License

A custom Preact Hook that provides a declarative useEventListener.


Table of Contents

Installation

This package has Preact 10+ as a peer dependency.

npm install @preact-hooks/event or yarn add @preact-hooks/event

You can also load it via the unpkg CDN

https://unpkg.com/@preact-hooks/event will download the latest UMD bundle.

Docs

For usage and examples see donovan/use-event-listener.

LICENSE

MIT