mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
2457df5d06
Fixes #4028
17 lines
444 B
ReasonML
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>
|
|
};
|