bs-next-alt

1.0.4 • Public • Published

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>

Package Sidebar

Install

npm i bs-next-alt

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

147 kB

Total Files

9

Last publish

Collaborators

  • enalmada