Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

fd-elem

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fd-elem

Create DOM elements FP-style!

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

fp-dom

FAQs

Package last updated on 05 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts