ReScript bindings for Next.js
.
Exposed as Next
module.
rescript-next
X.y.* means it's compatible with
next
X.y.*
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"
],
//...
}
next/dynamic
next/error
next/head
next/image
next/link
next/router
(on
,off
,push
,replace
)getStaticProps
andgetServerSideProps
Check out the source file to discover the API.
Check the changelog for more informations about recent releases.
Read the contribution guidelines before contributing.
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.