3 ms·
While I like the project and effort put into this, I think, if you considering using this project, you should also look at google's own polymer project. Its bas
by TeeWEE 12y ago
While I like the project and effort put into this, I think, if you considering using this project, you should also look at google's own polymer project. Its based on the industry standard web-components. https://www.polymer-project.org/ https://www.polymer-project.org/
React is using "virtual dom" which is kind of a hack to support web-components kind-of technology. Since the technology is currently here, i would recommend using it, and not using React.
However a consideration is also browser support. I'm not sure if polymer is production ready.
- dimsuz 12y agoCan't vote this comment down (not enough karma?), but I would. React is great library, it is not very constructive to call it a hack just because webcomponents are there.
- TeeWEE 12y agoI'm not saying React is a hack. I'm saying that all libraries that try to provide true "web components" that hide their implementation details for the user, are only achievable trough a "shadow dom" implementation in the browser. Thats just a fact, based on how browser work. With the shadow-dom, customer elements, and templating you can achieve true componenets, like in uix toolkits such as Android, iOS and Java Swing.
- colinramsay 12y agoIs this correct? React doesn't use the virtual DOM to create HTML-like elements, it uses JSX for that, and JSX is optional. As far as I know the virtual DOM is used to avoid updating the "real" DOM in the browser when you don't have to.
- marknutter 12y agoReact does use a virtual DOM, namely so that it can efficiently track changes to the DOM. That's different than the shadow DOM that web components use, though, where they have their own sandboxed DOM that's completely isolated from the parent DOM.
- TeeWEE 12y agoIndeed. That's what i try to say. I think the knowledge regarding the shadow-dom and true standards-based web-components is not widely spread yet among devvers.
- colinramsay 12y agoYour first sentence is pretty much just a shorter version of what I said in my comment! The shadow DOM and React's virtual DOM are completely unconnected.