This is NextJS with ReScript project.
Note: You should make page.js
file
let default = () =>
<div className="px-4 py-8 container mx-auto">{"Hello NextJS!" -> React.string}</div>
let default = (req: NextApi.req, res: NextApi.res) => {
res
->NextApi.status(200)
->NextApi.send({
"message": {
switch req->NextApi.query->Js.Dict.get("message") {
| Some(message) => message
| None => "Hello ReScript!"
}
},
})
}
- tailwindcss
- More simplify tailwindcss (how?)
- NextJS API
NextApiRequest
,NextApiResponse
- Multiple page support
- More better multiple page support