News for hackers. Stuff that matters.
Re:Jeopardy Heatmap Written in Elm by ReleaseCandidat on Saturday January 22, 2022 @04:19PM (#30040926)
> Why is `Html.Attributes.style` and `HTML.text` repeated so many times

Because it is constructor.

   Html.text "STRING"
constructs a HTML text element from "STRING".

But because of

    import Html exposing (br, button, div, p, text, h3, a)
    import Html.Attributes exposing (style, href)
the `HTML` and `Html.Attributes` prefixes are actually not needed and not used in the lower part (in the `view` function).

> what else could it be

For example an attribute like the `id`, or a class name or ... Yes, Ok, it actually can't be in the second array, the first array is for the attributes and the second one for the child elements.

To be honest, the differences between Clojurescript with Reagent, Elm or PureScript with Halogon / React are minimal for me.

There are no comments on this comment yet.