# jsxidom

> Transform JSX to incremental DOM with Babel

Latest version **0.1.6** (published 2016-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsxidom
pnpm add jsxidom
yarn add jsxidom
bun add jsxidom
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2016-02-08 |
| First published | 2016-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | eliot |

## Links

- npm: https://www.npmjs.com/package/jsxidom
- Repository: https://github.com/eliot-akira/jsxidom
- Homepage: https://github.com/eliot-akira/jsxidom#readme
- Issues: https://github.com/eliot-akira/jsxidom/issues
- npm.io page: https://npm.io/package/jsxidom

## Dependencies (1)

- [incremental-dom](https://npm.io/package/incremental-dom.md) *

## Recent versions

- 0.1.6 (latest) — 2016-02-08
- 0.1.5 — 2016-02-08
- 0.1.4 — 2016-02-08
- 0.1.3 — 2016-02-08
- 0.1.2 — 2016-02-08
- 0.1.1 — 2016-02-08
- 0.1.0 — 2016-02-08

## README

# [JSXIDOM](https://github/eliot-akira/jsxidom)

Transform JSX to incremental DOM with Babel

## Use

Install

~~~bash
$ npm i jsxidom --save-dev
~~~

In *.babelrc*

~~~json
"plugins": [
  ["transform-react-jsx", { "pragma": "jsxidom" }]
]
~~~

In application

~~~javascript
require('jsxidom');
~~~

The above line is required once. In addition to building incremental DOM from JSX, it provides a *render* method to HTML element.

Example use case

~~~javascript
const app = document.body.querySelector('#app')

let i = 0

function refresh() {
  app.render(<div class="counter">{ i++ }</div>)
}

refresh()
setInterval( refresh, 1000 )
~~~

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