Consider this snippet:
type alias Model =
{ x : Int }
testFunc : Model -> Html String
testFunc model =
div [] []
I am very confused here. div is a function that returns a Html msg. But testFunc returns Html String.
How does this compile? Am i missing out on some very basic understanding here?