luwes / swiss

🇨🇭Functional custom elements

Home Page:https://swiss.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add attributeObserver enhancer

luwes opened this issue · comments

It's possible to not even define attributes that need to be observed with an observeAttributes array but use a MutationObserver to check if any attributes changed and re-render, though caution with class, style, id, etc.