make the root component take no arguments
This commit is contained in:
1 parent
8fe2515413
commit
404c864246
26 files changed
+46
-47
No files matched your search
@@ -4,7 +4,7 @@ use dioxus_core::ElementId;
|
||||
|
||||
#[test]
|
||||
fn text_diff() {
|
||||
fn app(cx: Scope) -> Element {
|
||||
fn app() -> Element {
|
||||
let gen = generation();
|
||||
render!( h1 { "hello {gen}" } )
|
||||
}
|
||||
@@ -33,7 +33,7 @@ fn text_diff() {
|
||||
|
||||
#[test]
|
||||
fn element_swap() {
|
||||
fn app(cx: Scope) -> Element {
|
||||
fn app() -> Element {
|
||||
let gen = generation();
|
||||
|
||||
match gen % 2 {
|
||||
|
||||
Reference in new issue
Block a user