Reim store is an Event Emitter, so you can freely use it for handling events
constemitter=reim({message:'abc'})emitter.on('test', () => {// … react to 'test' event});emitter.once('test', (...args) => {// … react to first 'test' event (invoked only once!)});emitter.emit('test', arg1, arg2/*…args*/); // Two above listeners invokedemitter.emit('test', arg1, arg2/*…args*/); // Only first listener invokedemitter.off('test', listener); // Removed first listeneremitter.emit('test', arg1, arg2/*…args*/); // No listeners invokedemitter.subscribe(() =>emitter.emit('update-message'), state =>state.message) // Emit on state change