jamiebuilds / incremental-dom-react-helper

Helper to make Google's incremental-dom library work with React's compile target today.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

incremental-dom-react-helper

Helper to make Google's incremental-dom library work with React's compile target today.

Example: http://jsbin.com/yoturaneca/edit?js,output

let dom = (
  <div className="foo">
    <h1>Hello World</h1>
  </div>
);

IncrementalDOM.patch(document.body, dom);

Or rather:

var dom = (
  React.createElement('div', { className: 'foo'},
    React.createElement('h1', null, 'Hello World')
  )
);

IncrementalDOM.patch(document.body, dom);

About

Helper to make Google's incremental-dom library work with React's compile target today.

License:ISC License


Languages

Language:JavaScript 100.0%