Node Packaged Masterfully
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    fd-elempublic

    fd-elem

    Build Status npm version

    Create DOM elements FP-style!

    Installation

    npm install fd-elem --save

    Usage

    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');
     

    API

    elem :: (tagName, content)

    • tagName -> string: type of element to be created.

    • content -> string: Contents of the newly created element.

    Keywords

    install

    npm i fd-elem

    Downloadsweekly downloads

    3

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar