Guest User

Untitled

a guest
Nov 20th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import kotlinx.html.js.onClickFunction
  2. import org.w3c.dom.events.Event
  3. import react.RBuilder
  4. import react.dom.button
  5.  
  6. fun RBuilder.square(value: String, onClickFunction: (Event) -> Unit) =
  7. button(classes = "square") {
  8. +value
  9. attrs.onClickFunction = onClickFunction
  10. }
Add Comment
Please, Sign In to add comment