When writing a view function (or helper function that generates part of the
view hierarchy), is it better to take a function mapping values or messages
to parent messages or to use Html.App.map for this? In other words, is it
better to write:

viewCheckbox SetMyCheckboxState "My Checkbox" model.myCheckboxState

viewCheckbox : (Bool -> msg) -> String -> Bool -> Html msg


or to write:

Html.App.map SetMyCheckboxState
    <| viewCheckbox "My Checkbox" model.myCheckboxState

viewCheckbox : String -> Bool -> Html Bool


Mark

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to