Guest User

Untitled

a guest
Dec 16th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. module Components = {
  2. module Box = {
  3. let jsComponent = [%bs.raw
  4. {|
  5. ({ children, ...props }) => React.createElement("box", props, children)
  6. |}
  7. ];
  8. let make = (~width, ~height, ~top, ~left, children) =>
  9. ReasonReact.wrapJsForReason(
  10. ~reactClass=jsComponent,
  11. ~props={"top": top, "left": left, "width": width, "height": height},
  12. children
  13. );
  14. };
  15. };
Add Comment
Please, Sign In to add comment