Nextjs 13 cheatsheet
install next with tailwind
1
npx create-next-app@latest
https://nextjs.org/docs
1
npm install -D tailwindcss
https://tailwindcss.com/docs/installation
use a structure with folder and page
create a page
1
app/about/page.js
link to the page
1
2
3
import Link from 'next/link'
<Link href = '/about'>About</Link>
create nested pages
1
app/about/teampage.js
This post is licensed under CC BY 4.0 by the author.