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

A custom Preact Hook that provides a declarative useEventListener.

License

Notifications You must be signed in to change notification settings

mihar-22/preact-hooks-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A custom Preact Hook that provides a declarative useEventListener.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published