3 ms·
Yea. That's kinda like what Elm does for its views. ul [] [ li [] text "Foo"], li [] text "Bar"] ] Took a while to "get" it, but now I rea
by bphogan 11y ago
Yea. That's kinda like what Elm does for its views.
ul [] [
li [] text "Foo"],
li [] text "Bar"]
]
Took a while to "get" it, but now I really like it.
(`ul` and `li` are functions that take two lists - the first is a list of attributes like class or ID or whatnot, and the second is the inner content... text or other elements.)
- guidopallemans 11y agoyou forgot some braces: ul [] [ li [] [text "Foo"], li [] [text "Bar"] ]
- bphogan 11y agoHah! I did. Thanks!