4 ms·
As far as component libraries that start from HTML, I think Marko has the best syntax. Attributes are always parsed as JS expressions, for example. There's st
by dpisk 8y ago
As far as component libraries that start from HTML, I think Marko has the best syntax. Attributes are always parsed as JS expressions, for example. There's still some quirks, but overall it's pretty nice. https://markojs.com/docs/syntax/ https://markojs.com/docs/syntax/
There are some benefits from just embracing JavaScript though, especially, as you mention, integration with things like TypeScript.
- pbowyer 8y agoThat attribute syntax is awesome! I've found VueJS's handling of attributes to be somewhat confusing, sometimes getting a different type passed through than I was expecting. Marko takes the approach that would least confuse.