Examples using server actions that require user confirmation before executing.
pnpm install
pnpm run dev
open http://localhost:3000
pnpm create next-app
- ✔ Would you like to use TypeScript? … No / Yes
- ✔ Would you like to use ESLint? … No / Yes
- ✔ Would you like to use Tailwind CSS? … No / Yes
- ✔ Would you like to use
src/
directory? … No / Yes - ✔ Would you like to use App Router? (recommended) … No / Yes
- ✔ Would you like to customize the default import alias (@/*)? … No / Yes
Tailwind layout: https://preline.co/examples/pricing-sections.html
https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations
next.config.ts
experimental: {
serverActions: true,
},
- https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations
- tailwind css layouts:
app/page.tsx
: https://preline.co/examples/pricing-sections.htmlcomponents/Modal.tsx
: https://tw-elements.com/docs/standard/components/modal/