Skip to content

OpenJSX/jsx-to-idom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Incremental DOM Renderer for JSX-IR

Installation

npm install jsx-to-idom

Note: do not forget to install "incremental-dom" manually since from NPM 3 peer dependencies won't be installed automatically

Usage

Transpiling

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

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

Runtime

import { render } from 'jsx-to-idom';
import { patch } from 'incremental-dom'

patch(container, () => {
  render(<div className="hello">Hello World</div>);
});

License

MIT

About

JSX-IR to Incremental DOM renderer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published