hello world example working
This commit is contained in:
1 parent
3865f44081
commit
4013341b6c
22 files changed
+159
-176
No files matched your search
@@ -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!(),
|
||||
|
||||
Reference in new issue
Block a user