UNPKG

keet

Version:

Minimalist view layer for the web

18 lines (13 loc) 336 B
import Keet from '../' import { getId } from '../utils' class App extends Keet { el = 'app' state = 'World' componentDidMount () { console.assert(getId('app').innerHTML === 'Hello World', 'hello test') } render () { return document.createTextNode('Hello {{state}}') } } export default new App()