Comment

Comment by i_feel_great

This inspired me to look up the Elm docs, and came across this gem:

  view model =
    div []
      [ button [ onClick Decrement ] [ text "-" ]
      , div [] [ text (String.fromInt model) ]
      , button [ onClick Increment ] [ text "+" ]
      ]
The html elements themselves are Elm functions. Code looks like data. Nice. Now considering Elm to be potentially useful tool to know.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton