Created
December 13, 2018 15:55
-
-
Save peterpme/177956aed4f112f63fc806cc2206ab46 to your computer and use it in GitHub Desktop.
ReasonReact render props
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
[@genType] | |
let make = (~render, ~children) => { | |
...component, | |
render: _self => | |
<div className="InteriorLayout"> | |
{render()} | |
</div>, | |
}; |
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
[@genType] | |
let make = (~match_, ~history, ~images, _children) => { | |
...component, | |
render: _self => | |
<InteriorLayout render={<div />}> | |
<InteriorLayoutSidebar title="Assets" links /> | |
<InteriorLayoutHeader mode=TitleOnly title="Images" /> | |
</InteriorLayout> | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment