hello world example working

This commit is contained in:
Evan Almloff committed 2024-01-05 18:01:05 -06:00
1 parent 3865f44081
commit 4013341b6c
22 files changed
+159 -176

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ impl ToTokens for ElementAttrNamed {
let value = &self.attr.value;
let value = quote! { #value };
quote! {
__cx.attr(
::dioxus::core::Attribute::new(
#attribute,
#value,
#ns,
@@ -79,7 +79,7 @@ impl ToTokens for ElementAttrNamed {
ElementAttrValue::EventTokens(tokens) => match &self.attr.name {
ElementAttrName::BuiltIn(name) => {
quote! {
dioxus_elements::events::#name(__cx, #tokens)
dioxus_elements::events::#name(#tokens)
}
}
ElementAttrName::Custom(_) => todo!(),