Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Nov 25, 2023
1 parent 22ce27e commit 8445dae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct Counter {
}

impl Composable for Counter {
fn compose(&mut self) -> impl Composable {
fn compose(&mut self) -> impl IntoComposable {
let mut count = use_state(|| self.initial_value);

use_future(|| async move {
Expand All @@ -47,8 +47,11 @@ impl Composable for Counter {
}
}

fn app() -> impl Composable {
group((Counter { initial_value: 0 }, Counter { initial_value: 100 }))
fn app() -> impl IntoComposable {
(
Counter { initial_value: 0 },
Counter { initial_value: 100 }
)
}

#[tokio::main]
Expand Down

0 comments on commit 8445dae

Please sign in to comment.