@disist/usepubsub
v1.0.0
Published
Simple hook, that realizes PubSub for React apps
Readme
usePubSub
Simple hook, that realizes PubSub for React apps
This is one channel PubSub.
Install
npm install --save @disist/usePubSubUsage
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
