Creating a new custom element is not always desirable as it adds a new element to the DOM which could mess up styling, forces you to contend with the shadow DOM, and often make it difficult to implement accessibility or progressive enhancement. Using a view modifier you can attach stateful behavior to any DOM element without adding extra elements at runtime.
Modifiers allow you to apply behavior to any arbitrary HTML element rather than needing to create a component or custom element, e.g.
Creating a new custom element is not always desirable as it adds a new element to the DOM which could mess up styling, forces you to contend with the shadow DOM, and often make it difficult to implement accessibility or progressive enhancement. Using a view modifier you can attach stateful behavior to any DOM element without adding extra elements at runtime.