Skip to content

Instantly share code, notes, and snippets.

View zlangbert's full-sized avatar

Zach Langbert zlangbert

View GitHub Profile

Keybase proof

I hereby claim:

  • I am zlangbert on github.
  • I am zlangbert (https://keybase.io/zlangbert) on keybase.
  • I have a public key whose fingerprint is 7CC7 119C D7B8 2CB3 B7F7 3471 B580 58CA 81E3 83DA

To claim this, I am signing this object:

case class State(color: String)
class Backend($: BackendScope[Unit, State]) {
val ref = Ref[Input]("input")
def onChange(): Unit = {
changeColor()
}
case class Props(color: String, onClick: Unit => Unit)
class Backend($: BackendScope[Props, _]) {
def onClick(e: ReactEventI) = {
println("clicked!")
$.props.onClick()
}
val circ = ReactComponentB[Props]("CircleComponent")
.stateless