use sycamore::prelude::*; fn compile_pass() { let _ = create_root(|| { let _: View = view! { p {} }; let _: View = view! { custom-element {} }; let _: View = view! { p() }; let _: View = view! { custom-element() }; let _: View = view! { p(class="my-class") }; let _: View = view! { p(class="my-class", id="my-id") }; let _: View = view! { p("attr-42"="my-value") }; let _: View = view! { button(class="my-btn", on:click=|_| {}) }; let _: View = view! { button(class="my-btn", aria-hidden="true") }; let _: View = view! { p(dangerously_set_inner_html="Test") }; let attributes = Attributes::default(); let _: View = view! { p(..attributes) }; // view! should correctly parenthesize the (1 + 2) when borrowing. let _: View = view! { p { (1 + 2) } }; // view! should accept the pattern "-ref-" in an attribute name. let _: View = view! { p(class="my-class", data-ref-me="my-value") }; }); } fn main() {}