|
|
|
|
|
by hamza_nouali
2093 days ago
|
|
> Here's what killed web components: lack of native databinding on the web "Modern Frameworks like React/Vue/Angular and Web Components are built to solve different problems. Web Components provide strong encapsulation for reusable components, while Frameworks provides a declarative library that keeps the DOM in sync with your data. The two goals are complementary. As a developer, you are free to use a Framework in your Web Components, or to use Web Components in your Framework, or both." https://reactjs.org/docs/web-components.html I have a side project for selling reusable HTML blocks/sections, some people advised me to convert it into Web Components since it can be reused between different Frameworks (React, Vue, Angular, etc) at the same time. After reading this discussion, I think we should build a native components for each Framework. |
|