4 ms·
It would be nice if it had more of a Jade indentation like syntax. The angle brackets and closing tags are just syntactic noise. If we want to go with the cod
by bcheung 11y ago
It would be nice if it had more of a Jade indentation like syntax. The angle brackets and closing tags are just syntactic noise.
If we want to go with the code route then the DOM as code is actually really clean with Coffeescript.
Elm is interesting but I don't like having to do [] (empty array) when there are no attributes or [] for the children when there are obviously no children (hr, br, img, etc).
- funksta 11y agoIt is an alpha-quality library, but I've been playing around with something like this, using ES2015 template strings: https://github.com/af/slashpile https://github.com/af/slashpile I've yet to figure out if the run-time performance hit is reasonable, but I vastly prefer the syntax to either JSX or hyperscript (I previously wrote a hyperscript-like library as well, and have used it for several months)