Virtual-dom
See https://www.npmjs.com/package/virtual-dom
1 | var h = require('virtual-dom/h') |
Rendering
1 | tree = h('div', { style: { color: 'blue' } }, [ 'hello' ]) |
Updating
1 | tree2 = h('div', { style: { color: 'blue' } }, [ 'hello world' ]) |
See https://www.npmjs.com/package/virtual-dom
1 | var h = require('virtual-dom/h') |
1 | tree = h('div', { style: { color: 'blue' } }, [ 'hello' ]) |
1 | tree2 = h('div', { style: { color: 'blue' } }, [ 'hello world' ]) |