wip: diffing approach slightly broken
This commit is contained in:
1 parent
9d0727edab
commit
4e48e0514e
6 files changed
+32
-47
No files matched your search
@@ -63,10 +63,12 @@ impl PartialEq for ButtonProps<'_> {
|
||||
|
||||
fn CustomButton<'a>(ctx: Context<'a>, props: &'a ButtonProps<'a>) -> DomTree {
|
||||
ctx.render(rsx!{
|
||||
button {
|
||||
class: "inline-block py-4 px-8 mr-6 leading-none text-white bg-indigo-600 hover:bg-indigo-900 font-semibold rounded shadow"
|
||||
onmouseover: move |_| (props.set_name)()
|
||||
"{props.name}"
|
||||
div {
|
||||
button {
|
||||
class: "inline-block py-4 px-8 mr-6 leading-none text-white bg-indigo-600 hover:bg-indigo-900 font-semibold rounded shadow"
|
||||
onmouseover: move |_| (props.set_name)()
|
||||
"{props.name}"
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user