[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"term-u\u002Fuse-server":3,"related-u\u002Fuse-server":59},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":53,"sitemap":54,"stem":57,"subcategory":6,"__hash__":58},"terms\u002Fterms\u002Fu\u002Fuse-server.md","Use Server",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"'use server' is a React directive that marks a function as running on the server only. You can call it from the client like a normal function, and React handles the RPC under the hood. Server functions in disguise.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"The 'use server' directive in React marks a module or function as a Server Function — callable from client components but executed on the server. React bundlers generate RPC proxies automatically. Used for mutations and server-side actions in Next.js App Router and other RSC-compatible frameworks. Contrasts with 'use client', which marks a Client Component.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Add 'use server' to the top of the mutation function.\" \u002F \"'use server' replaces most custom API routes.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"frontend","'use server' is a React directive that marks a function as running on the server only.","advanced","md","u",{},true,"\u002Fterms\u002Fu\u002Fuse-server",[49,50,51,52],"React Server Components","Server Actions","Server Functions","Use Client",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Fu\u002Fuse-server","uC8L-3vqHXXQMijqJuL0N6l0UqViKtSMsZjV4wLXrsk",[60,63],{"title":49,"path":61,"acronym":6,"category":40,"difficulty":42,"description":62},"\u002Fterms\u002Fr\u002Freact-server-components","React Server Components run on the server and send zero JavaScript to the browser.",{"title":50,"path":64,"acronym":6,"category":40,"difficulty":42,"description":65},"\u002Fterms\u002Fs\u002Fserver-actions","Server Actions let you write a function in your React component that magically runs on the server when called.",1776518321361]