4 ms·
(sorry, I'm not well versed in some of these things) Would it make sense for React to start using this native web-component at some level moving forward, to im
by reustle 8y ago
(sorry, I'm not well versed in some of these things)
Would it make sense for React to start using this native web-component at some level moving forward, to improve efficiency ? Maybe another library will replicate most of Reacts features but is powered by this native (faster/cleaner) technology?
- wwright 8y agoafaik web components are mostly about encapsulation and semantics; they let you box up arbitrary HTML, JS and CSS and put a little bow on top so that it looks like one “custom” HTML tag to the rest of the document. (I could be misremembering.) React is mostly about life cycles, propagation, and composition. The first two are orthogonal to web components afaik. The third has some overlap, but it’s mostly complementary with web components (once again, afaik.)
- paulddraper 8y agoAngular has kept web component compatibility as a high priority. You can publish angular components as web components, and even leverage native functionality like shadow Dom.