Next.js documentation
The official reference for the tools used in this lesson.
Lesson 4.1
A server action is a function that only ever runs on the server but can be called from the client. It replaces the route handler you would otherwise write by hand.
A server action is a function that only ever runs on the server but can be called from the client. It replaces the route handler you would otherwise write by hand.