I hereby claim:
- I am rivasdiaz on github.
- I am rivasdiaz (https://keybase.io/rivasdiaz) on keybase.
- I have a public key ASARd6UiatyScb9-c-XYIO1NOpu01P60LMGMKG4P6ySlKQo
To claim this, I am signing this object:
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//JDK 17+ | |
//DEPS io.quarkus:quarkus-bom:2.4.1.Final@pom | |
//DEPS io.quarkus:quarkus-picocli | |
//DEPS io.quarkus:quarkus-jackson | |
//DEPS io.quarkus:quarkus-smallrye-context-propagation | |
//DEPS com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.5 | |
//DEPS com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.5 |
I hereby claim:
To claim this, I am signing this object:
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 | |
} |
function Square(props) { | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); | |
} |