aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 966f259..1373acb 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ A framework for building create web apps – powered by Gleam and React!
import gleam/int
import lustre
import lustre/element.{button, div, p, text}
-import lustre/event.{dispatch, on_click}
+import lustre/event.{on_click}
import lustre/cmd
pub fn main() {
@@ -35,9 +35,9 @@ fn render(state) {
div(
[],
[
- button([on_click(dispatch(Decr))], [text("-")]),
+ button([on_click(Decr)], [text("-")]),
p([], [text(int.to_string(state))]),
- button([on_click(dispatch(Incr))], [text("+")]),
+ button([on_click(Incr)], [text("+")]),
],
)
}