daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 55 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top