node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

fd-listen

fd-listen

Build Status npm version

Handle DOM-events FP-style

Installation

npm install fd-listen --save

Usage

var listen = require('fd-listen');
var select = require('fd-select');
 
var onClick = listen('click');
var onClickSetClicked = onClick((event) => {
  event.target.innerHTML = 'clicked';
});
 
onClickSetClicked(select('.link'));