Last active
October 27, 2017 01:49
-
-
Save dwwoelfel/57d16458f708f3ab594796f370070cd3 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
external commentItem : ReasonReact.reactClass = "./CommentItem" [@@bs.module]; | |
let make ::_type ::id ::user ::timeAgo ::content children => | |
ReasonReact.wrapJsForReason | |
reactClass::commentItem | |
props::{"type": _type, "id": id, "user": user, "timeAgo": timeAgo, "content": content} | |
children; | |
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
let component = ReasonReact.statelessComponent "CommentRe"; | |
let make _children => { | |
...component, | |
render: fun self => <div> <CommentItemRe _type="" id="" user="" timeAgo="" content="" /> </div> | |
}; | |
let default = ReasonReact.wrapReasonForJs ::component (fun jsProps => make [||]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment