import { start } from "@thi.ng/hdom/start" ; const greeter = ( _ , name ) => [ "h1.title" , "hello " , name ] ; const counter = ( i = 0 ) => { return ( ) => [ "button" , { onclick : ( ) => i ++ } , `clicks: ${ i }` ] ; } ; const app = ( ) => { return [ "div#app" , [ greeter , "world" ] , counter ( ) , counter ( 100 ) ] ; } ; start ( app ( ) ) ;