Licence
ISC
Version
1.1.0
Deps
0
Vulns
0
Weekly
0
mfreactivity
Usage
import reactive from 'mfreactivity';
const node = reactive();
node.subscribe('some-field', function () {
console.log('Some Field is changed');
});
node.emit('some-field');
node.subscribe('some-user', function () {
console.log('Some User is changed!');
});
node.subscribe('some-user.name', function () {
console.log('Some Users name is changed!');
});
// Will produce two messages
node.emit('some-user.name');