inter-object
v1.0.2
Published
communicate between objects. communicate reactjs components
Downloads
11
Maintainers
Readme
inter-object
communicate between objects. communicate reactjs components
example
const { Manager } = require("inter-object")
let data = []
let emitter = new Manager()
emitter.on(
"hello",
(ev) => {
console.log("Emitter say hello !",ev);
data.push(ev)
}
)
emitter.emit("hello",{surname:"surname"})