by ergo14 · 10y ago · 0 comments
Basically, Web Components exist to solve a different problem than React.
> WebComponents provide strong encapsulation for reusable components, while React provides a declarative library that keeps the DOM in sync with your data.
You can use something like reflux with web components to do this too. The fact that react uses virtual dom is an implementation detail I think.
Maybe I'm missing something obvious here.
Even react tutorial operates with components: https://facebook.github.io/react/docs/tutorial.html
Well that is just entirely pretentious.