with cdn
<script src="https://cdn.jsdelivr.net/npm/html2vnode@1.0.2/dist/html2vnode.esm.js"></script>
with npm
When i have fucking time to fucking write
var body = document.body;
var tree = new vTree(body);
vNode Prototypes
Field | type | default |
---|---|---|
getTagName | function() -> tagName | - |
setProps | funtion({ k: v }) -> void | - |
stanardStyle | funtion() -> void | - |
setPropsStyle | funtion({ k: v }) -> void | - |
setText | funtion(str) -> void | - |
render | funtion() -> DOM | - |
vTree Prototypes
ps: vTree follow functor rules
Field | type | default |
---|---|---|
getVTree | function() -> vTree | - |