# jsx-to-html

> Render JSX-IR to HTML or XML string

Latest version **1.1.0** (published 2015-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsx-to-html
pnpm add jsx-to-html
yarn add jsx-to-html
bun add jsx-to-html
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-07-15 |
| First published | 2015-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arthur Stolyar |
| Maintainers | nekr |

## Links

- npm: https://www.npmjs.com/package/jsx-to-html
- Repository: https://github.com/jsx-ir/jsx-to-html
- Issues: https://github.com/jsx-ir/jsx-to-html/issues
- npm.io page: https://npm.io/package/jsx-to-html

## Dependencies (6)

- [svg-tags](https://npm.io/package/svg-tags.md) ^1.0.0
- [html-tags](https://npm.io/package/html-tags.md) ^1.1.1
- [empty-tags](https://npm.io/package/empty-tags.md) ^1.0.0
- [escape-html](https://npm.io/package/escape-html.md) ^1.0.2
- [jsx-runtime](https://npm.io/package/jsx-runtime.md) ^1.1.0
- [babel-plugin-jsx](https://npm.io/package/babel-plugin-jsx.md) ^1.1.0

## Recent versions

- 1.1.0 (latest) — 2015-07-15
- 1.0.4 — 2015-07-06
- 1.0.3 — 2015-07-06

## README

## HTML Renderer for JSX-IR

### Installation

```npm install jsx-to-html```

### Usage

#### Transpiling

```js
babel.transform(code, {
  plugins: ['jsx-to-html/babel-plugin'],
  blacklist: ['react']
});
```
or any other way described [here](http://babeljs.io/docs/advanced/plugins/#usage), just pass `'jsx-to-html/babel-plugin'`` as a plugin name.

### Runtime

```javascript
import { render } from 'jsx-to-html';

var content = render(<div className="hello">Hello World</div>);

container.innerHTML = content;
```

## License

[MIT](LICENSE.md)

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