bs-next

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i bs-next

Weekly Downloads

0

Version

3.0.0

License

MIT

Unpacked Size

146 kB

Total Files

7

Last publish

Collaborators

  • ulrikstrid