Create DOM elements FP-style!
npm install fd-elem --save
import elem from 'fd-elem';
let div = elem('div');
let greetDiv = div('Hello FD!');
document.body.appenChild(greetDiv);
// it's curried out of the box, you could also do:
elem('div', 'div\'s content');
elem :: (tagName, content)
-
tagName
-> string: type of element to be created. -
content
-> string: Contents of the newly created element.