daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
Top