add a test for the memo hook

This commit is contained in:
Evan Almloff committed 2024-03-11 15:33:46 -05:00
1 parent bbc81b8f9c
commit f51b5617e1
6 files changed
+115 -31

No files matched your search

+2
View File
@@ -13,6 +13,8 @@ use std::ops::Deref;
/// `use_future` **won't return a value**.
/// If you want to return a value from a future, use `use_resource` instead.
/// ```rust
/// # use dioxus::prelude::*;
/// # use std::time::Duration;
/// fn app() -> Element {
/// let mut count = use_signal(|| 0);
/// let mut running = use_signal(|| true);