fd-listen
v1.0.2
Published
Handle DOM-events FP-style
Downloads
3
Readme
fd-listen
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'));