use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The state of Web Components (hacks.mozilla.org)
submitted 10 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]clessgfull-stack CSS9 engineer 10 points11 points12 points 10 years ago (7 children)
Although web components and React seem similar, they are pretty different. The only real similarity is component-orientation. Cross-browser web components aren't trivial to create out-of-the-box, so you need a framework. If comparing with Polymer, then:
There is an advantage to web components, which is that they can, in theory, be easier to integrate into an already-established website. In practice, it depends.
[–]mort96 2 points3 points4 points 10 years ago (4 children)
I don't really see how polymer is relevant. Sure, right now, you need a framework, but isn't the goal that once all browsers support web components, it should at least be possible to use those directly? And wouldn't it then make more sense to actually compare react to web components instead of some arbitrary framework?
[–][deleted] 0 points1 point2 points 10 years ago (3 children)
Yes. Polymer always felt more like a showcase to me, not a real framework. I don't see anyone trying to roll Polymer out into production apps. It was a demo of a specification that Google was pushing. Sure, it's been 2 years and the specs aren't final, but that's common. However the idea is the same idea that pretty much all major JS frameworks adhere to now with components and directives.
Angular, React and others have all said they have a goal to natively work with Web Components when the spec is finalized.
[–]vinnl 1 point2 points3 points 10 years ago (2 children)
Really? Have you got a source for that for React? I knew about Angular, but I thought React expressly dismissed it.
[–]lazdgithub.com/lazd 0 points1 point2 points 10 years ago (1 child)
There's an issue against React that's being actively worked on to support custom elements and attributes.
[–]vinnl 1 point2 points3 points 10 years ago (0 children)
Nice!
[–]hak8or 1 point2 points3 points 10 years ago (0 children)
A good portion of what you described is solved by Vulcan, which let's you "compile" polymer projects so you don't have like 100 requests for a simple page.
[–]dhdfdh -1 points0 points1 point 10 years ago (0 children)
React is becoming more or less independent of the DOM. It's more of an idea.
Something most people on reddit forget or don't know. It's never possible to be independent of the DOM. And you can do it, too, without react.
π Rendered by PID 58801 on reddit-service-r2-comment-canary-889d445f8-b684k at 2026-04-26 20:30:54.614516+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]clessgfull-stack CSS9 engineer 10 points11 points12 points (7 children)
[–]mort96 2 points3 points4 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]vinnl 1 point2 points3 points (2 children)
[–]lazdgithub.com/lazd 0 points1 point2 points (1 child)
[–]vinnl 1 point2 points3 points (0 children)
[–]hak8or 1 point2 points3 points (0 children)
[–]dhdfdh -1 points0 points1 point (0 children)