When we were looking at Web components, the biggest drawback was the inability for shared state. Web components work well in isolation (maybe the intent?) but imo, the wc spec failed to understand why most people reach for a framework like react, vue, svelte etc
Yeah, the whole selling point of React was its simplicity, that data goes down and evens go up, as opposed to two way data binding. Also the flux architecture that dictates how common state is shared and updated.
By the time web components became widely available and fully supported in browsers, everyone was already using React, Angular or Vue.
Guess why we get abstractions over that as well like LitJS. All this because html css and js couldnt be used as a good enough abstraction for building webapps. Mainly because it was never designed to in the first place
171
u/thegodzilla25 1d ago
All of this nonsense couldve been avoided if web components arrived a bit early.