rescript-next

12.0.1 • Public • Published

rescript-next

Sponsoring button

GitHub package.json version npm downloads GitHub Workflow Status License
GitHub followers Twitter Follow Sponsor my work

ReScript bindings for Next.js.

Exposed as Next module.

rescript-next X.y.* means it's compatible with next X.y.*

Installation

When Next.js is properly installed & configured by following their installation instructions, you can install the bindings:

npm install rescript-next
# or
yarn add rescript-next

rescript-next should be added to bs-dependencies in your bsconfig.json:

{
  //...
  "bs-dependencies": [
    "@rescript/react",
    // ...
+    "rescript-next"
  ],
  //...
}

Supported modules and features

  • next/dynamic
  • next/error
  • next/head
  • next/image
  • next/link
  • next/router (on, off, push, replace)
  • getStaticProps and getServerSideProps

Usage

Check out the source file to discover the API.


Changelog

Check the changelog for more informations about recent releases.


Contribute

Read the contribution guidelines before contributing.

Code of Conduct

I want this community to be friendly and respectful to each other. Please read my full code of conduct so that you can understand what actions will and will not be tolerated.

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i rescript-next

    Weekly Downloads

    0

    Version

    12.0.1

    License

    MIT

    Unpacked Size

    11.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • moox