Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Nov 25, 2023
2 parents f527220 + 6dbca27 commit 596027f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
</div>

<div align="center">
<a href="https://github.com/concoct-rs/concoct/tree/main/concoct_examples">Examples</a>
<a href="https://github.com/concoct-rs/concoct/tree/main/concoct_examples">Native Examples</a>
<a href="https://github.com/concoct-rs/concoct/tree/main/web_examples">Web Examples</a>
</div>

Concoct is an incremental computation framework for Rust.
Expand All @@ -30,10 +31,11 @@ This crate is inspired by Jetpack Compose, [xilem](https://github.com/linebender
```rust
fn app() -> impl IntoComposable {
let mut count = use_state(|| 0);

(
"High five count: ",
html("Up High").on_click(|| count += 1),
html("Down low").on_click(|| count -= 1)
format!("High five count: {count}"),
button("Up High").on_click(|| count += 1),
button("Down low").on_click(|| count -= 1)
)
}

Expand Down

0 comments on commit 596027f

Please sign in to comment.