https://github.com/hyperhype/hyperscript
https://github.com/mlmorg/react-hyperscript
which might be actually similar except for the dollar sign which adds some noise.
But some of your prop/attr setting would be inner function/methods instead of being passed as an array. That would shorten some lines.
> Show me what that code would look like if it was done better
I'm definitely not going to try to provide an example if you do not offer the courtesy of a smaller representative example though.
By the way, why is $(Label,...) not simply Label()? That could be a function.
After a while of managing commas, you just begin to long for JSX again. Hyperscript wouldn't solve that.
https://github.com/hyperhype/hyperscript
https://github.com/mlmorg/react-hyperscript
which might be actually similar except for the dollar sign which adds some noise.
But some of your prop/attr setting would be inner function/methods instead of being passed as an array. That would shorten some lines.
> Show me what that code would look like if it was done better
I'm definitely not going to try to provide an example if you do not offer the courtesy of a smaller representative example though.
By the way, why is $(Label,...) not simply Label()? That could be a function.