-
-
Save Denommus/4c14c06bc3cc15f2e069cf276b22acf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module type COMPONENT = { | |
type t; | |
let name: string; | |
let vdomS: signal t => signal ReasonReact.reactElement; | |
}; | |
module GenerateComponent (C: COMPONENT with type t = unit) => { | |
let component = ReasonReact.reducerComponent C.name; | |
let make _children => componentFromSignal component () C.vdomS; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment