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
-
-
Replying to @pfrazee @slightlylate
cc
@mikeal this is what I was talking about the other day2 replies 0 retweets 0 likes -
Key. React gave us ability to render Components as children, passing rich data in attrs. wc can't match w/o higher abstraction a la Skate
2 replies 0 retweets 4 likes -
This is confused. You were always able to do this via DOM. React added a customer (non-HTML) parser on top of DOM.
1 reply 0 retweets 1 like -
Replying to @slightlylate @AdamRackis and
What I'm hearing is "I like JSX, HTML is a pain". Cool, but that's not about Web Components or ability to pass props.
1 reply 0 retweets 0 likes -
Wait, hold up. Are you saying, w/ raw wc, I can do <div> <my-widget fn="obj.fn"> where obj is an object somewhere, with a fn method on it?
4 replies 0 retweets 0 likes -
That's HTML markup. You have confused serialized (HTML) with deserialized (DOM). *sigh*
2 replies 0 retweets 5 likes -
I *just* want the same ergonomics as React. This shouldn't be fought by wc folks tho—start advertising
@treshugart's Skate - seems awesome!3 replies 0 retweets 3 likes -
Replying to @AdamRackis @pfrazee and
Cool; add JSX on top of them. You don't need all the rest of the junk.
2 replies 0 retweets 1 like -
Replying to @slightlylate @AdamRackis and
Quick question. Do WCs give me any virtual DOM diffing? I trust that's a framework level abstraction I'll need to build.
2 replies 0 retweets 0 likes
Correct. WCs make your components *real* DOM. Update cycle is up to you.
-
-
Replying to @slightlylate @AdamRackis and
So where would (and can) I potentially do this diffing stuff before render? Outside of the WCs or would I have to write a different deserialization implementation (one that spits out some internal representation to diff ads opposed to DOM slices)?
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.