Skip to content

baristna/use-event-subscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useEventSubscribe react hook

npm

A React Hook to subscribe to an event.


Installation


Installation

$ yarn add use-event-subscribe

Import

import useEventSubscribe from 'use-event-subscribe';

Usage

useEventSubscribe('eventName', ({detail}) => {
  /* code here */
})

About

React hook to subscribe to an event

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published