Leao Virtual DOM
Virtual DOM implementation
Installation
$ npm install leao
Features
- Create nodes
- Update elements
create a node
const yourConstName = Leao
e.g
const a =
Update element
Leao
If there's no oldNode, it will display the newNode
e.g
node-browserify to require leao in the browser
installconst Leao = ; const h = Leaoh; const a = const b = // give the div the id of rootconst $root = document;//create a button with the id reloadconst $reload = document; Leao;$reload;