Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- );
- };
- };
Add Comment
Please, Sign In to add comment