Closed wereHamster closed 7 years ago
Experimenting with API like Lucid has for building elements. Greatly simplifies API surface:
ENode "br" Nothing [] [] noStyle []
br_ []
ENode "div" Nothing [] [] rootStyle [...]
div_ [style_ rootStyle] [...]
EThunk someThunk props
thunk_ someThunk props
Attribute "value" (AVString t)
value_ t
intAttribute "x" 0
x_ 0
Looks sweet! :+1:
Experimenting with API like Lucid has for building elements. Greatly simplifies API surface:
Nodes
ENode "br" Nothing [] [] noStyle []
br_ []
ENode "div" Nothing [] [] rootStyle [...]
div_ [style_ rootStyle] [...]
EThunk someThunk props
thunk_ someThunk props
Attributes
Attribute "value" (AVString t)
value_ t
intAttribute "x" 0
x_ 0