H2x Save Abandoned

Transform HTML into JSX or another language ?

Project README

h2x

Build Status codecov

H2X is a configurable compiler to transform HTML into JSX or another language.

It is inspired by babel and configurable using plugins.

Usage

import { transform } from 'h2x-core'
import jsx from 'h2x-plugin-jsx'

const result = transform(`<div class="foo"></div>`, { plugins: [jsx] })
console.log(result) // <div className="foo" />

Why

Transforming HTML into JSX is not simple. It's a complicated operation which requires a compiler to do properly.

Extending it with plugins will give us the ability to create awesome utilities.

License

MIT

Open Source Agenda is not affiliated with "H2x" Project. README Source: smooth-code/h2x
Stars
87
Open Issues
1
Last Commit
5 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating