rescript-next

ReScript bindings for Next.js


Keywords
rescript, react, next
License
MIT
Install
npm install rescript-next@10.0.0-alpha.1

Documentation

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.