Set attributes on brisky-elements
const render = require('brisky/render')
const s = require('vigour-state/s')
const state = s({ thumb: 'cat' })
const app = render({
img: {
tag: 'img',
props: {
src: {
$: 'thumb',
$transform: (val) => `http://bla.com/${val}.jpg`
}
}
}
}, state)
document.body.appendChild(app)
state.cat.thumb('dog') // โ changes thumb to dog