Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. external link : ReasonReact.reactClass =
  2. "default"
  3. [@@bs.module "@phenomic/plugin-renderer-react/lib/components/Link"];
  4.  
  5. let make
  6. href::(href: string)
  7. style::(style: option ReactDOMRe.Style.t)=?
  8. activeStyle::(activeStyle: option ReactDOMRe.Style.t)=?
  9. className::(className: option string)=?
  10. activeClassName::(activeClassName: option string)=?
  11. children =>
  12. ReasonReact.wrapJsForReason
  13. reactClass::link
  14. props::{
  15. "href": href,
  16. "style": Js.Nullable.from_opt style,
  17. "activeStyle": Js.Nullable.from_opt activeStyle,
  18. "className": Js.Nullable.from_opt className,
  19. "activeClassName": Js.Nullable.from_opt activeClassName
  20. }
  21. children;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement