fd-elem
Create DOM elements FP-style!
Installation
npm install fd-elem --save
Usage
; let div = ; let greetDiv = ; documentbody; // it's curried out of the box, you could also do:
API
elem :: (tagName, content)
-
tagName
-> string: type of element to be created. -
content
-> string: Contents of the newly created element.