Skip to content

Commit 6b5b980

Browse files
committed
chore/README - more places I need to use tuples in the README examples
1 parent 00af518 commit 6b5b980

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ As an example, the signal can be used to show a loading indicator.
182182
Elem.button [
183183
Ds.onClick (Ds.get "/fetchBigData") // make a request to the backend
184184
Ds.indicator "fetching" // the signal we are creating
185-
Ds.attr' "disabled" "$fetching" // assigns the "disabled" attribute if the `fetching` signal value is true
185+
Ds.attr' ("disabled", "$fetching") // assigns the "disabled" attribute if the `fetching` signal value is true
186186
] [ Text.raw "Fetch!" ]
187187
188188
Elem.div
@@ -223,7 +223,7 @@ Elem.div [ Ds.text "$foo" ] []
223223
Binds the value of an HTML attribute to an expression.
224224

225225
```fsharp
226-
Elem.div [ Ds.attr' "title" "$foo" ] []
226+
Elem.div [ Ds.attr' ("title", "$foo") ] []
227227
```
228228

229229
### [Ds.show : `data-show`](https://data-star.dev/reference/attribute_plugins#data-show)

0 commit comments

Comments
 (0)