bs-next-alt
v1.0.4
Published
Reason bindings for Next.js
Downloads
3
Maintainers
Readme
bs-next-alt
Reason v5 bindings for Next.js v6.
API
Bindings for native Next.js components:
Example
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>
}
Bindings for data-prefetch-next which extends Next.Link:
<DataPrefetchLink href="/about" prefetch=true withData=true >
<a> (ReasonReact.stringToElement("About")) </a>
</DataPrefetchLink>