Merge branch 'master' into fix-event-bubbling

This commit is contained in:
Evan Almloff committed 2023-09-17 20:00:22 -05:00
1 parent c8fca7b321
commit 98335bd9a6
368 files changed
+1877 -13498

No files matched your search

+4 -5
View File
@@ -1,13 +1,12 @@
#![allow(non_snake_case)]
use dioxus::prelude::*;
use dioxus_signals::*;
fn main() {
dioxus_desktop::launch(app);
dioxus_desktop::launch(App);
}
fn app(cx: Scope) -> Element {
#[component]
fn App(cx: Scope) -> Element {
let signal = use_signal(cx, || 0);
let doubled = use_selector(cx, move || signal * 2);
@@ -22,7 +21,7 @@ fn app(cx: Scope) -> Element {
}
}
#[inline_props]
#[component]
fn Child(cx: Scope, signal: ReadOnlySignal<usize>) -> Element {
render! {
"{signal}"