0.0.4 • Published 4 months ago
fast-pubsub v0.0.4
fast-pubsub
Fast use of parm-pub-sub model in JS/TS without React Hooks like useState, useEffect, etc.
Run with npm install fast-pubsub
How to Initialize:
- For JS
const content = new PubSub();
- For TS (You can type your variable)
const content = new PubSub<string>();
Methods:
- parameter
- publish
- subscribe