Skip to content

afrankvt/vdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vdom - A Virtual DOM API for Fantom

// create vdom tree
v1 := VElem("h1") {
  it->style = "color: blue"
  it.text   = "Hello, World"
}

// initial render to DOM node
elem := VDom.render(v1)

// generate a new vdom tree
v2 := VElem("h1") {
  it->style = "color: red"
  it.text   = "Hello, World"
}

// patch existing DOM with changes
VDom.patch(elem, v2)

About

Virtual DOM API for Fantom

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages