Created
February 8, 2019 21:03
-
-
Save phated/932fc013aea22cf5ec94cd2453681d21 to your computer and use it in GitHub Desktop.
Random ReasonReact ideas
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
[@react.decorate] | |
let component = (fn) => { | |
let make = fn; | |
let props = [@bs.obj] someHowGetArguments | |
(make, props); | |
}; |
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
let component = ReasonReact.component((~header, ~className, children) => { | |
<div className> | |
{ReasonReact.string(header)} | |
<div> children </div> | |
</div> | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment