Closed aeosynth closed 4 years ago
Seems kind of odd that they have React optimisations like that in there. You can get the same thing by just pulling virtual elements out of the render function and reusing them. Deku will skip over nodes if they're the same as the previous node.
It could possibly be worth changing the property name if it means free optimisations, but I'll look into it.
that's constant elements :D
Derp, my bad. Yeah of course. I'm guessing we could support that with a Babel transform too.
http://babeljs.io/blog/2015/03/31/5.0.0/#inline-elements
basically, change virtual elements
attributes
toprops
alternatively, i suppose we could ask babel to support other virtual element signatures