But we can also use new (in fact old) function to ...
# kilua
r
But we can also use new (in fact old) function to get component reference and use it:
Copy code
div {
    val button = buttonRef("A button") {
        onClick {
            println("clicked")
        }
    }                
    button("Another button") {
        onClick {
            button.focus()
        }
    }
}