https://github.com/moox/rescript-next
ReScript bindings for Next.js
https://github.com/moox/rescript-next
Last synced: about 1 year ago
JSON representation
ReScript bindings for Next.js
- Host: GitHub
- URL: https://github.com/moox/rescript-next
- Owner: MoOx
- License: mit
- Created: 2021-03-31T14:58:41.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-11T08:21:33.000Z (almost 4 years ago)
- Last Synced: 2025-04-11T00:55:15.629Z (about 1 year ago)
- Language: ReScript
- Size: 58.6 KB
- Stars: 49
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `rescript-next`
[ ](https://www.npmjs.com/package/rescript-next)
[](https://github.com/MoOx/rescript-next/actions)
[](https://github.com/MoOx/rescript-next)
[](https://github.com/MoOx)
[](https://twitter.com/MoOx)
[](https://github.com/MoOx/rescript-next?sponsor=1)
[ReScript](https://rescript-lang.org) bindings for [`Next.js`](https://nextjs.org/).
Exposed as `Next` module.
`rescript-next` X.y.\* means it's compatible with
`next` X.y.\*
## Installation
When
[`Next.js`](https://nextjs.org/)
is properly installed & configured by following their installation instructions,
you can install the bindings:
```console
npm install rescript-next
# or
yarn add rescript-next
```
`rescript-next` should be added to `bs-dependencies` in your
`bsconfig.json`:
```diff
{
//...
"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](./src/Next.res) to discover the API.
---
## Changelog
Check the [changelog](./CHANGELOG.md) for more informations about recent
releases.
---
## Contribute
Read the
[contribution guidelines](https://github.com/MoOx/.github/blob/main/CONTRIBUTING.md)
before contributing.
## Code of Conduct
I want this community to be friendly and respectful to each other. Please read
[my full code of conduct](https://github.com/MoOx/.github/blob/main/CODE_OF_CONDUCT.md)
so that you can understand what actions will and will not be tolerated.