@preact-hooks/event
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i @preact-hooks/event

    Weekly Downloads

    0

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    7.34 kB

    Total Files

    7

    Last publish

    Collaborators

    • mihar-22