1.1.0 • Published 6 years ago

mfreactivity v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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');