mknr
v1.1.1
Published
make Next.js route quick and simple
Downloads
3
Maintainers
Readme
mknr
create Next.js route by running one command
npx mknr path dirName
result
path/dirName/page.tsx
import { Metadata } from "next"
import React from "react"
export const metadata: Metadata = {
title: "dirName",
}
function Page() {
return <div>dirName</div>
}
export default Page
path/dirName/loading.tsx
import React from "react"
function Loading() {
return <div>dirName-loading</div>
}
export default Loading