Git Product home page Git Product logo

bs-next's Introduction

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

bs-next's People

Contributors

dcalhoun avatar tmepple avatar ulrikstrid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bs-next's Issues

Use fromOption instead of from_opt

  Warning number 3
  bs-next/src/Next.re 18:21-28

  16 ┆ Js.Undefined.(
  17 ┆   {
  18 ┆     "href": from_opt(href),
  19 ┆     "as": from_opt(_as),
  20 ┆     "prefetch": from_opt(prefetch),

  deprecated: Js.Undefined.from_opt
Use fromOption instead

bs-next fails when included with latest bs-platform

Thank you for contributing this binding to the community. Without it, I would not have been able to play around with next.js and reason-react. Older versions of bs-platform have issues on windows so I have had to update it in my next.js project to get examples/with-reasonml working...but the latest version of bs-platform causes bs-next to throw a runtime error. If I include Next.rc directly into my project it works fine so it must be a compile version incompatibility. At your convenience, could you update the dependencies and do a release?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.