{ "Interests" }
diff --git a/Cargo.lock b/Cargo.lock index 52e053ef460..26fef1c45bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4767,6 +4767,7 @@ dependencies = [ "rustversion", "syn 2.0.117", "trybuild", + "version_check", "yew", ] diff --git a/Cargo.toml b/Cargo.toml index d645f8348ff..ad7ec04e13c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [ "cfg(verbose_tests)", "cfg(yew_lints)", "cfg(nightly_yew)", + "cfg(yew_macro_nightly)", "cfg(wasm_bindgen_unstable_test_coverage)" ]} [workspace.dependencies] diff --git a/examples/boids/src/main.rs b/examples/boids/src/main.rs index bfec32fd6f3..c2edcba1b1d 100644 --- a/examples/boids/src/main.rs +++ b/examples/boids/src/main.rs @@ -66,11 +66,9 @@ impl Component for App { } = *self; html! { - <> -
{"current count: "} {*state}
- - - > +{"current count: "} {*state}
+ + } } diff --git a/examples/dyn_create_destroy_apps/src/counter.rs b/examples/dyn_create_destroy_apps/src/counter.rs index 3154c19fa8d..4ff1aca1371 100644 --- a/examples/dyn_create_destroy_apps/src/counter.rs +++ b/examples/dyn_create_destroy_apps/src/counter.rs @@ -44,19 +44,17 @@ impl Component for CounterModel { let destroy_callback = ctx.props().destroy_callback.clone(); html! { - <> - // Display the current value of the counter -- { "App has lived for " } - { self.counter } - { " ticks" } -
+ // Display the current value of the counter ++ { "App has lived for " } + { self.counter } + { " ticks" } +
- // Add button to send a destroy command to the parent app - - > + // Add button to send a destroy command to the parent app + } } diff --git a/examples/dyn_create_destroy_apps/src/main.rs b/examples/dyn_create_destroy_apps/src/main.rs index 1dd0408f2ec..da5360fdd89 100644 --- a/examples/dyn_create_destroy_apps/src/main.rs +++ b/examples/dyn_create_destroy_apps/src/main.rs @@ -89,20 +89,18 @@ impl Component for App { // We will only render once, and then do the rest of the DOM changes // by mounting/destroying appinstances of CounterModel html! { - <> -{ +
match &*search { - Search::Idle => "Type something to search...".into(), - Search::Fetching(query) => format!("Searching for: {}", query).into(), + Search::Idle => "Type something to search...", + Search::Fetching(query) => format!("Searching for: {}", query), Search::Fetched(response) => response.clone(), } - }
+{ "Interests" }
{ "What are yews?" }
-{ "Everything you need to know!" }
+{ "What are yews?" }
+{ "Everything you need to know!" }
-{ "Who are we?" }
+{ "Who are we?" }
-{ paragraph }
- } - }); html! {{ paragraph }
+ } +