|
|
|
|
|
by eterps
2088 days ago
|
|
My thoughts exactly. For some reason people tend to think that a web component should stand on its own from high level. But that's just not how HTML works. Something like <shop-app></shop-app> should be seen as an anti-pattern IMO. I see web components as a compositional approach for dealing with complexity. Something else that is extremely powerful that people seem to forget is that you can add a src attribute to your web component that links to JSON data, or HTML fragements on a server. It can give you a lot of caching and concurrency opportunities, browser engines are extremely efficient dealing with this. For most people an src attribute feels really obvious for an img tag, but apparently less so in other contexts. |
|
I'm able to compose components into higher order screens and get an enormous amount of reusability across projects.
I have a set of components, screens, etc... that I've built up over time and I can mix and match them and whip out an app extraordinarily fast.
Additionally, there are some great design systems and component libraries like Ionic built on top that make this even easier.
I can write a component for a client, and they can use it anywhere in their ecosystem, regardless of technology.