3.0.0 • Published 6 years ago

bs-next v3.0.0

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

bs-next

Reason bindings for Next.js v6.

API

Bindings are provided for the only two components provided by Next.js:

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>
}