4 ms·
Web components are a decade old, what do you think has changed or will change to make them more popular than frameworks? I think unless there are massive impro
by ng12 3y ago
Web components are a decade old, what do you think has changed or will change to make them more popular than frameworks?
I think unless there are massive improvements to the developer experience the best hope for web components is as an implementation detail for a higher-level framework.
- dtagames 3y agoGood question. I probably should have qualified my statement. I can think of a lot of cases where an organization is better off building custom components on something like Lit (close to bare metal), rather than trying to shoehorn Angular or React into what you want. On the other hand, having a lot of predefined pieces and methods is also helpful to some people. For me, I've been bitten and I would pick web components over a fixed framework for a clean sheet project. I don't think many devs have really tried to work with web components or they might get the bug, too! PS: I wrote an intro series on this topic on Medium[0]. [0] https://medium.com/gitconnected/getting-started-with-web-components-lit-part-1-911aa7058e9b https://medium.com/gitconnected/getting-started-with-web-com...
- jongjong 3y agoI also think not many devs have tried to work with web components and that likely explains its current lack of popularity. Many mid-level devs are not even aware of its existence or they mistakenly think of it as some low-level tech meant only for framework engineers or deep system engineering type people. That said, having taught some introductory web development courses in the past few years, I sense that new devs entering the industry are interested in simpler solutions and not particularly keen to get into React. The React learning curve is much steeper than it once was now that it has so meany features and the benefits are not so clear to someone who is starting from scratch.