I created this page while practicing the different ways to fetch data, comparing a server and a client component.
I used Next.js, TypeScript, TailwindCSS, Shadcn/ui and the Dog API to fetch random images of dogs.
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.