There have been a few VDOM/diffing proposals kicked around over the last few years. Haven't seen a proper spec fleshed out, but would <3 to.
-
-
That's what I've been experimenting on too in regards to React. Admittedly it's way harder to do with React, as we have to evaluate raw JS.
-
It's worth exploring in react but much harder to get right because it's hard to enforce restrictions in "just js"
-
Not really... template literals just do that for you
-
JSX is not the same thing as template literals. And stitching together JS loops / conditionals with templates also doesn't work.
-
It does with statically analyzable tokens and expressions passed to them (aka Vue/angular directives)
-
Yes, if you eliminate the "just JS" part and add conditionals and loops to the template language, it works.
-
I also think jsx has some very powerful composition tech. So using both interchangably is very very nice. (Like pure/func to assign props)
-
The powerful composition comes from functions. Which a good template language can have.
- 18 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.