Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ReasonReact render props
[@genType]
let make = (~render, ~children) => {
...component,
render: _self =>
<div className="InteriorLayout">
{render()}
</div>,
};
[@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
You can’t perform that action at this time.