3 ms·
> If I want to pass an array of ids to a sub-component declaratively, there's not really an easy way to do it. This seems like a framework layer feature and no
by themacguffinman 8y ago
> If I want to pass an array of ids to a sub-component declaratively, there's not really an easy way to do it.
This seems like a framework layer feature and not something that should be baked into the standard. I don't think web components are supposed to act like a framework and optimize a particular workflow or programming style.
I think the way snabbdom implements props just assigns Javascript properties to the DOM object.
- russellbeattie 8y agoPersonally, I'd love to see HTML add a standard way to refer to the value of JavaScript objects in memory. This is already done (badly in my opinion) with the blob:// url you can pass to media elements. Declaratively defining an element with a live JS variable for attributes would be very useful in lots of ways, and not specific to any programming style.