1.0.0 • Published 3 years ago
@disist/usepubsub v1.0.0
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
1.0.0
3 years ago