wip: start moving events to rc<event>

This commit is contained in:
Jonathan Kelley committed 2021-06-16 23:37:55 -04:00
1 parent 9222d8ece3
commit b9ff95fa12
21 files changed
+249 -605

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
//! Example: External Updates
//! -------------------------
//!
//! Cause updates to the VirtualDOM state from outside the component lifecycle.
//! The root props could be changed or the use_receiver hook could be used.
//!
@@ -30,8 +31,8 @@ fn App(ctx: Context, props: &RootProps) -> VNode {
ctx.render(rsx! {
div {
a { href="/dogs/"}
a { href="/cats/"}
a { href: "/dogs/"}
a { href: "/cats/"}
{content}
}
})