1.0.4 • Published 5 years ago

bs-next-alt v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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>