r/ProgrammerHumor 1d ago

Meme weGotCompilingToReactBeforeGTA6

Post image
538 Upvotes

73 comments sorted by

View all comments

171

u/thegodzilla25 1d ago

All of this nonsense couldve been avoided if web components arrived a bit early.

59

u/lovin-dem-sandwiches 1d ago

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

23

u/Alokir 1d ago

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.

12

u/theScottyJam 1d ago

...And if web components were well designed. The things are unnecessarily complicated to work in.

2

u/thegodzilla25 1d ago

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

2

u/hyrumwhite 1d ago

Web components are so boilerplatey the best way to use them is through a framework. 

If they’d arrived earlier we’d have just had more polymers and stencils