Skip to content

Instantly share code, notes, and snippets.

View bfleischhacker's full-sized avatar

Benjamin Fleischhacker bfleischhacker

View GitHub Profile
@bfleischhacker
bfleischhacker / keybase.md
Created October 23, 2017 23:15
keybase.md

Keybase proof

I hereby claim:

  • I am bfly2000 on github.
  • I am benfleisch (https://keybase.io/benfleisch) on keybase.
  • I have a public key ASBYzIzhO_sENs9aeKKUHfXq_F6psJmeb-qSXQ4kCWUclwo

To claim this, I am signing this object:

@bfleischhacker
bfleischhacker / LcHoc.scala
Last active March 17, 2018 01:11
Using a JS Higher-Order-Component (https://github.com/viktorbergehall/lcHOC) with scala-react-interface (sri)
import sri.core.{ComponentConstructor, ReactClass}
import scala.scalajs.js
import scala.scalajs.js.ConstructorTag
object LcHoc {
def apply[T <: ReactClass {type PropsType; type StateType}](params: js.UndefOr[LcHocParams] = js.undefined)
(implicit tag: ConstructorTag[T]): ComponentConstructor {
type ComponentType = T
type PropsType = T#PropsType