Reason bindings for Next.js v6.
Bindings are provided for the only two components provided by Next.js:
let component = ReasonReact.statelessComponent("Index");
let make = (_children) => {
...component,
render: (_self) =>
<div>
<Next.Head>
<title> (ReasonReact.stringToElement("My Page Title")) </title>
</Next.Head>
<Next.Link href="/about">
<a> (ReasonReact.stringToElement("About")) </a>
</Next.Link>
</div>
}
let component = ReasonReact.statelessComponent "Index"
let make _children =
{
component with
render =
(fun _self ->
((div
~children:[((Next.Head.createElement
~children:[((title
~children:[ReasonReact.stringToElement
"My Page Title"] ())
[@JSX ])] ())[@JSX ]);
((Next.Link.createElement ~href:"/about"
~children:[((a
~children:[ReasonReact.stringToElement
"About"] ())[@JSX ])]
())[@JSX ])] ())[@JSX ]))
}