# create-element-lib

> Super tiny h library.

Latest version **1.0.0** (published 2020-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-element-lib
pnpm add create-element-lib
yarn add create-element-lib
bun add create-element-lib
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-09-21 |
| First published | 2019-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 12.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jan-Markus Langer |
| Maintainers | janmarkuslanger |

## Links

- npm: https://www.npmjs.com/package/create-element-lib
- npm.io page: https://npm.io/package/create-element-lib

## Recent versions

- 1.0.0 (latest) — 2020-09-21
- 0.2.1 — 2020-03-22
- 0.2.0 — 2019-09-04
- 0.1.1 — 2019-06-01
- 0.1.0 — 2019-06-01

## README

# create-element.js

Super tiny h library.

## Install
`npm i create-element-lib --save`

## Usage

``` javascript

const myElement = h(
    'div', {
        id: 'foo',
    }, 
    'bar'
    h('p', { click: (event, clickedElement) => {
        console.log('foo');
    }}, 'Click me')
);

// -> <div id="foo"><p>Click me</p></div>
// click on <p>
// console: foo

```

---
_Source: https://npm.io/package/create-element-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
