Created
January 21, 2018 23:34
-
-
Save fakenickels/6a11825d607e0f25e0d9fafce1b88008 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MakeComponent = (Config: { let reactClass: ReasonReact.reactClass; let name: string; }) => { | |
let component = ReasonReact.statelessComponent(Config.name); | |
let make = children => | |
ReasonReact.wrapJsForReason( | |
~reactClass=Config.reactClass, | |
~props={"yourProp": 123}, | |
children | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment