@disist/usepubsub
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

usePubSub

Simple hook, that realizes PubSub for React apps

This is one channel PubSub.

Install

npm install --save @disist/usePubSub

Usage

To use this hook you need to add PubSubProvider to the your App

import { PubSubProvider } from './PubSubProvider';

function App() {
  return (
    <PubSubProvider>
      ...
    </PubSubProvider>
  );
}

export default App;

License

MIT © disist

Readme

Keywords

none

Package Sidebar

Install

npm i @disist/usepubsub

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

731 kB

Total Files

29

Last publish

Collaborators

  • disist