mt-dom 0.59.2

A library for generating patches as a result diffing virtual DOM tree
Documentation
1
2
3
4
5
6
7
use mt_dom::*;
pub type MyNode =
    Node<&'static str, &'static str, &'static str, &'static str, &'static str>;
fn main() {
    let div: MyNode = element("div", [attr("key", "1")], [leaf("hello")]);
    println!("{:#?}", div);
}