I honestly adore React, but the amount of awesome, React-only components makes me sad. There's no reason your awesome reusable component has to be tied to React. This is one use case where Web Components are so perfect.
-
Show this thread
-
Replying to @maxlynch @slightlylate
Using React removes burden for you. With WebComponents you will need to implement rendering and reaction to attributes change for each component individually
5 replies 0 retweets 1 like -
Also, don’t forget about performance concern. React can batch all updates in one DOM re-render. With WebComponents you have many individual updates and no batching
1 reply 0 retweets 0 likes -
This again is absolutely not true. Many libraries, like LitElement, batch changes for you too. If performance is your concern, you should specifically *avoid* the slower libraries like React.
2 replies 0 retweets 13 likes -
Replying to @justinfagnani @boriscoder and
But that's another library, is it possible to do without a library and without inventing stuff in userland? I think I remember a proposal for this kind of feature but I haven't followed it
1 reply 0 retweets 1 like -
Replying to @JakeDChampion @justinfagnani and
That’s not the point. Who cares if you need another library? The goal is universal compatibility, NOT *only* using raw web APIs.
1 reply 0 retweets 3 likes -
Replying to @maxlynch @justinfagnani and
I understand that. I'd prefer only using native APIs, the browser should help us down the correct path and not having to remember which libraries to use.
1 reply 0 retweets 2 likes -
Replying to @JakeDChampion @maxlynch and
Eventually that'd be nice, but before the platform includes all the implementation helpers it needs to define the intra-component, encapsulation, and composition interfaces. First, make it *possible* to build interoperable components. Then make it *easier*.
1 reply 0 retweets 5 likes
The more direct point here is that libraries are not cost-equal. The difference between 40K and 4K is...well, 10x. And if you need to embed a few smaller libraries, it's still a win to the extent you haven't eclipsed what you would have otherwise spent.
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.