Which is a common-sense choice prior to WCs, but now I want to do what I do with react, eg: <my-component thing=${arrayOfValues}>
-
-
Replying to @pfrazee @slightlylate
So we'll need to modify yo-yo to do myComponentInst.thing = arrayOfValues instead... I guess under some heuristic for what should be a prop
4 replies 0 retweets 1 like -
Replying to @pfrazee @slightlylate
cc
@mikeal this is what I was talking about the other day2 replies 0 retweets 0 likes -
Replying to @pfrazee @slightlylate
so, i dont think the optimal way to present functionality is to own the entire element creation pipeline.
1 reply 0 retweets 3 likes -
this immediately puts you in the framework world because in order to access you work is to call it in a specific way.
1 reply 0 retweets 4 likes -
once you give up on that and say “it’s just an element,” there are many ways to create an element.
2 replies 0 retweets 3 likes -
mmmm, but they are limited. You can't `const elem = new MyElement()` if you are extending HTMLElement.
2 replies 0 retweets 0 likes -
why not?
1 reply 0 retweets 0 likes -
I need to register it, which I avoid since I don't trust string based global registries. frameworks freed me of that hell
3 replies 0 retweets 0 likes -
No other way to enable innerHTML = ‘<my-element>’. If you want to be as flexible as native elements you need a registry.
2 replies 0 retweets 3 likes
Yep. This creates the tradeoff: allow framework to totalize and balkanize, or admit up-front coordination problem.
-
-
how to coordinate? how do you decide to divide the shared string namespace? right now I haven't seen people using framework prefixes
1 reply 0 retweets 0 likes -
Really? There's an entire world of components from dozens of places happily getting along over at https://www.webcomponents.org/
3 replies 0 retweets 0 likes - 6 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.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.