Created
December 13, 2017 22:01
-
-
Save lilactown/0894cc240fc77f76f2203f26fc521dcd 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 Components = { | |
module Box = { | |
let jsComponent = [%bs.raw | |
{| | |
({ children, ...props }) => React.createElement("box", props, children) | |
|} | |
]; | |
let make = (~width, ~height, ~top, ~left, children) => | |
ReasonReact.wrapJsForReason( | |
~reactClass=jsComponent, | |
~props={"top": top, "left": left, "width": width, "height": height}, | |
children | |
); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment