Skip to content

Commit

Permalink
Simplify demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-Ajaj committed Jul 21, 2019
1 parent 03515ee commit 7b73de7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions demo/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,14 @@ let render state dispatch =

Html.button [
attr.className "btn btn-success"
attr.styleList [
true, [ style.marginRight 5 ]
state.Count >= 5, [ style.color colors.crimson; style.fontSize 16 ]
state.Count >= 10, [ style.color colors.white; style.fontSize 20 ]
]

attr.style [ style.marginLeft 5 ]
attr.onClick (fun _ -> dispatch Increment)
attr.content "Increment"
]

Html.button [
attr.className "btn btn-danger"
attr.style [ style.marginLeft 5 ]
attr.style [ style.marginRight 5 ]
attr.onClick (fun _ -> dispatch Decrement)
attr.content "Decrement"
]
Expand Down

0 comments on commit 7b73de7

Please sign in to comment.