0.1.6 • Published 8 years ago

jsxidom v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

JSXIDOM

Transform JSX to incremental DOM with Babel

Use

Install

$ npm i jsxidom --save-dev

In .babelrc

"plugins": [
  ["transform-react-jsx", { "pragma": "jsxidom" }]
]

In application

require('jsxidom');

The above line is required once. In addition to building incremental DOM from JSX, it provides a render method to HTML element.

Example use case

const app = document.body.querySelector('#app')

let i = 0

function refresh() {
  app.render(<div class="counter">{ i++ }</div>)
}

refresh()
setInterval( refresh, 1000 )
0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago