viewSentence : Words -> Html msg
viewSentence sentence =
But in the view you are passing two arguments:
view : Model -> Html msg
view model =
main_ [ class "section" ]
[ div [ class "container" ]
[ viewTitle
, div [ class "box" ]
[ p
[ class "has-text-centered" ]
[ text model.sentence ]
, viewSentence model.chosenSentence model.chosenWords
]
]
]
viewSentence takes one argument:
But in the view you are passing two arguments:
Hi, Anton.
You are absolutely right! I was trying to code along with the writing, but still got some things wrong.
Just updated the article and added Ellie links.
Thank you.