Repository navigation
v6.2.0 - Minor Update
Change Log
Adding a new functionality that provides a interface to listening to component attribute changes.
Usage
export default function myComponent({ main }) {
const attr = attributes()
main(() => {
attr.onchange('src', onChangeSrc)
})
const onChangeSrc = ( key, value ) => {
console.log(`Changed ${key} to ${value}`)
}
}