Skip to content

Instantly share code, notes, and snippets.

@phated
Created February 8, 2019 21:03
Show Gist options
  • Save phated/932fc013aea22cf5ec94cd2453681d21 to your computer and use it in GitHub Desktop.
Save phated/932fc013aea22cf5ec94cd2453681d21 to your computer and use it in GitHub Desktop.
Random ReasonReact ideas
[@react.decorate]
let component = (fn) => {
let make = fn;
let props = [@bs.obj] someHowGetArguments
(make, props);
};
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