macro_rules! c {
    [@single $list:ident <<] => { ... };
    [@single $list:ident << ..$vnode_list:expr $(, $( $tail:tt )* )?] => { ... };
    [@single $list:ident << $into_vnode:expr $(, $( $tail:tt )* )?] => { ... };
    [] => { ... };
    [$( $tt:tt )*] => { ... };
}
Expand description

This macro can take various objects to build a VNodeList.

Example

h!(div).build(c![
  "Counter: ", 5,

  SomeComponent {
    some_prop,
  }
  .build(),

  some_bool.then(||
    h!(p).build(c!["Conditional rendering"]),
  ),

  h!(h1).build(c!["Hello World"]),

  ..vec.iter()
    .map(|x| h!(p).build(c![*x])),
])