1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-reasonml/components/Header.re
2018-04-26 10:05:04 -07:00

17 lines
444 B
ReasonML

let component = ReasonReact.statelessComponent("Header");
let styles = ReactDOMRe.Style.make(~marginRight="10px", ());
let make = (_children) => {
...component,
render: (_self) =>
<div>
<Next.Link href="/">
<a style=styles> (ReasonReact.stringToElement("Home")) </a>
</Next.Link>
<Next.Link href="/about">
<a style=styles> (ReasonReact.stringToElement("About")) </a>
</Next.Link>
</div>
};