This project demonstrates a simple single-page application built with Next.js 15.1, leveraging server actions and Shadcn UI components. The app allows users to enter their name and receive a personalized greeting.
- Input field for user name entry
- Submit button to process the input
- Server action to generate a greeting
- Responsive design using Shadcn UI components
- Explanation section detailing how the app works
- Node v22.11.0
- Next.js 15.1.6
- React 19.0.0
- TypeScript 5
- Shadcn UI
- Tailwind CSS 3.4.17
- Server Actions
- The user enters their name in the input field.
- Upon clicking the submit button, a server action is triggered.
- The server action processes the input and returns a greeting message.
- The greeting is displayed on the page.
Input
: Shadcn UI component for text inputButton
: Shadcn UI component for the submit buttonCard
: Shadcn UI component for wrapping the formAccordion
: Shadcn UI component for the explanation section
This project leverages the latest features of Next.js 15.1, including:
- Improved performance and stability
- Enhanced support for React Server Components
- Optimized server actions
- Clone the repository
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open generated link in your browser
To learn more about the technologies used in this project, check out the following resources: