wip: more work on scheduler
This commit is contained in:
1 parent
9d14faf62c
commit
882d69571d
5 files changed
+268
-296
No files matched your search
@@ -10,19 +10,17 @@ use dioxus_html as dioxus_elements;
|
||||
|
||||
#[test]
|
||||
fn sample_refs() {
|
||||
static App: FC<()> = |cx| {
|
||||
let div_ref = use_node_ref::<MyRef, _>(cx);
|
||||
// static App: FC<()> = |cx| {
|
||||
// let div_ref = use_node_ref::<MyRef, _>(cx);
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
style: { color: "red" }
|
||||
node_ref: div_ref
|
||||
onmouseover: move |_| {
|
||||
div_ref.borrow_mut().focus();
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
// cx.render(rsx! {
|
||||
// div {
|
||||
// style: { color: "red" },
|
||||
// node_ref: div_ref,
|
||||
// onmouseover: move |_| {
|
||||
// div_ref.borrow_mut().focus();
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
// };
|
||||
}
|
||||
|
||||
struct MyRef {}
|
||||
Reference in new issue
Block a user