Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import kotlinx.html.js.onClickFunction
- import org.w3c.dom.events.Event
- import react.RBuilder
- import react.dom.button
- fun RBuilder.square(value: String, onClickFunction: (Event) -> Unit) =
- button(classes = "square") {
- +value
- attrs.onClickFunction = onClickFunction
- }
Add Comment
Please, Sign In to add comment