# posthtml-jsx
**Repository Path**: mirrors_posthtml/posthtml-jsx
## Basic Information
- **Project Name**: posthtml-jsx
- **Description**: JSX Renderer
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-25
- **Last Updated**: 2025-09-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[![NPM][npm]][npm-url]
[![Deps][deps]][deps-url]
[![Tests][build]][build-url]
[![Coverage][cover]][cover-url]
[![Standard Code Style][style]][style-url]
[![Chat][chat]][chat-badge]
# PostHTML JSX
## Install
```bash
npm i -D posthtml-jsx
```
## Usage
```js
posthtml(plugins)
.process(html, { render: jsx(options) })
.then(({ html }) => console.log(html))
```
## Options
**`type`:** `{String}`: Type of the Component ( es5 || es2015 || stateless )
**`name`:** `{String}`: Name of the Component
**`props`:** `{String|Array}`: Props of the Component
**`export`:** `{Boolean}`: Export Component JS Module (true || false)
## Example
```js
import { readFileSync, writeFileSync } from 'fs'
import posthtml from 'posthtml'
import jsx from 'posthtml-jsx'
const html = readFileSync('./index.html', 'utf8')
posthtml()
.process(html, {
render: jsx({
type: 'es2015'
name: 'Test'
props: ['prop', '{ prop }', '...props']
export: true
})
})
.then((result) => writeFileSync('./Test.jsx', result.html, 'utf8'))
```
```html
Michael Ciniawsky |