Norbi
02/20/2024, 7:24 PMModifier
system and I use it almost always.
I started to write trivial utility functions for HTML tags like:
@Composable
fun Div(
modifier: Modifier,
content: ContentBuilder<HTMLDivElement>? = null
) =
Div(modifier.toAttrs(), content)
It doesn't seem like a big deal as I spare only one .toAttrs()
in each call (of course only if I don't need the .toAttrs {}
variant).
But as I started to use them, it seems that this small decrement of "boilerplate" counts, too π
My question is: is there a "deeper" reason why Kobweb does not provide such utility functions (that I might not have thought of for some reason), or are these just simply not implemented?
Thanks.David Herman
02/20/2024, 7:26 PMDavid Herman
02/20/2024, 7:26 PMDavid Herman
02/20/2024, 7:27 PMDavid Herman
02/20/2024, 7:29 PMDavid Herman
02/20/2024, 7:29 PMNorbi
02/20/2024, 7:33 PM