Newly Purchased Memories

    jsx-to-html

    1.1.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i jsx-to-html

    DownloadsWeekly Downloads

    11

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • nekr