[][src]Crate yew_macro

This crate provides Yew's procedural macro html! which allows using JSX-like syntax for generating html. It uses proc_macro_hack in order to be used in the expression position.

html! {
  <div>
    <button onclick=|_| Msg::Submit>{ "Submit" }</button>
    <>
      <Component prop="first" />
      <Component prop="second" />
    </>
  </div>
}

Please refer to https://github.com/DenisKolodin/yew for how to set this up.

Derive Macros

proc_macro_hack_html