feat: massage lifetimes

This commit is contained in:
Jonathan Kelley committed 2021-10-16 17:37:28 -04:00
1 parent 16dbf4a6f8
commit 9726a065b0
92 files changed
+250 -241

No files matched your search

+2 -2
View File
@@ -93,7 +93,7 @@
//! Dioxus uses hooks for state management. Hooks are a form of state persisted between calls of the function component.
//!
//! ```
//! pub pub static Example: FC<()> = |cx, props|{
//! pub pub static Example: FC<()> = |(cx, props)|{
//! let (val, set_val) = use_state(cx, || 0);
//! cx.render(rsx!(
//! button { onclick: move |_| set_val(val + 1) }
@@ -156,7 +156,7 @@
//! diouxs::web::launch(Example);
//! }
//!
//! pub pub static Example: FC<()> = |cx, props|{
//! pub pub static Example: FC<()> = |(cx, props)|{
//! cx.render(rsx! {
//! div { "Hello World!" }
//! })