@disist/usepubsub
v1.0.0
Published
Simple hook, that realizes PubSub for React apps
Downloads
65
Readme
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