When web components is worth the effort
The gap between knowing this and actually doing it is where most teams lose ground. Web components is not free, and pretending otherwise leads to bad decisions.
Most development decisions are really maintenance decisions wearing a different hat. The practical test is whether someone new to the project could tell, in a minute, that it had been handled.
When it is worth it
Custom elements work without committing to a framework. Getting it slightly wrong is survivable. Ignoring it entirely is not. Budget a little time for it every quarter and it never becomes a project of its own.
When it is not
If nothing downstream depends on it and nobody is complaining, it can wait. None of that requires a large budget, only a decision and someone to own it.
How to decide
Useful when several teams share one component set. Getting it slightly wrong is survivable. Ignoring it entirely is not. If it only works because one person remembers to do something, it does not work yet.
What this looks like day to day
The question is rarely whether something can be built, but what it costs to keep running afterwards. Three things worth confirming about web components before you move on:
- Someone can say what the current setup is without going to look
- Custom elements work without committing to a framework — and you know whether that is true here
- There is a way to tell whether the last change to this helped
If any of that sounds like a description of your current setup, it is fixable.