riot-js

Open full view…

Rerender DOM from call update()

gm2mars
Thu, 03 Nov 2016 10:33:53 GMT

If I give in the tag property that has changed and call the update, whether caused by rerendering the DOM? --- <component> <h1>{title}</h1> this.title = this.opts.title; //hello world this.on('other_event', () => { this.update({ title: this.opts.title //hello world }); }); </component> ---