Skip to content

OpenJSX/jsx-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

HTML Renderer for JSX-IR

Installation

npm install jsx-to-html

Usage

Transpiling

babel.transform(code, {
  plugins: ['jsx-to-html/babel-plugin'],
  blacklist: ['react']
});

or any other way described here, just pass `'jsx-to-html/babel-plugin'`` as a plugin name.

Runtime

import { render } from 'jsx-to-html';

var content = render(<div className="hello">Hello World</div>);

container.innerHTML = content;

License

MIT

About

Render JSX-IR to HTML string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published