class Hello extends Omi.Component { render() { return
Hello {this.data.name}!
} } class App extends Omi.Component { install() { this.name = 'Omi' this.handleClick = this.handleClick.bind(this) } handleClick(e) { this.name = 'Omix' this.update() } style() { return `h3{ color:red; cursor: pointer; }` } render() { return
Scoped css and event test! click me!
} } Omi.render(new App(), '#container')