From 6b5b98066e91c74d8f44507226b0411166dc98fe Mon Sep 17 00:00:00 2001 From: Greg Holden Date: Tue, 8 Apr 2025 08:22:58 -0400 Subject: [PATCH] chore/README - more places I need to use tuples in the README examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3017486..997ab2e 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ As an example, the signal can be used to show a loading indicator. Elem.button [ Ds.onClick (Ds.get "/fetchBigData") // make a request to the backend Ds.indicator "fetching" // the signal we are creating - Ds.attr' "disabled" "$fetching" // assigns the "disabled" attribute if the `fetching` signal value is true + Ds.attr' ("disabled", "$fetching") // assigns the "disabled" attribute if the `fetching` signal value is true ] [ Text.raw "Fetch!" ] Elem.div @@ -223,7 +223,7 @@ Elem.div [ Ds.text "$foo" ] [] Binds the value of an HTML attribute to an expression. ```fsharp -Elem.div [ Ds.attr' "title" "$foo" ] [] +Elem.div [ Ds.attr' ("title", "$foo") ] [] ``` ### [Ds.show : `data-show`](https://data-star.dev/reference/attribute_plugins#data-show)