ProgrUmar Logo
Module 2: React Server Components & Data Fetching

Server Actions & Forms

Duration: 22 mins

Server Actions

Mark an async function with "use server" and call it from a <form action> or a Client Component. The function runs entirely on the server — you can query your database directly.

Progressive Enhancement

Forms using Server Actions work even with JavaScript disabled, making them inherently accessible and resilient.

Chat with us