Concept Flow - Use server directive
Start Component File
Add 'use server' Directive
Define Server-only Functions
Export Component
Next.js Server Processes Component
Server-only Code Runs on Server
Client Receives Rendered Output
Client Interacts with Component
Server Functions Can Be Called via Server Actions
The 'use server' directive marks functions to run only on the server, separating server logic from client code in Next.js components.