DEV Community

Discussion on: On Using Web Component Libraries

 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

while working with Web Components I need to declare every property

That's not entirely true. You only need to declare properties that you want state updates on. If you want to listen on everything (because screw performance, I guess) you can write a 1-liner helper function with a MutationObserver and use it anywhere in your application.