Loading tutorials
FormData. It also assumes you know that a browser talks to a server over HTTP requests.2 min read"use server" marks. It covers two names that people often mix up: Server Function and Server Action.3 min readFormData. It also assumes you know the "use server" directive marks code that runs on the server. Here you will see the two places you can write that directive and when to pick each.3 min read"use server" file marks Server Functions. Here you will see what a Client Component receives when it imports a Server Function, and how to call2 min read"use server" and call them from a Client Component. It covers which values you can pass to a Server Function and which values it can return.2 min readasync/await, and how HTML forms and FormData work. It also assumes you have read the earlier chapters on the "use server" directive and on defining Server Functions.2 min readFormData, and async/await. It also assumes you can define a Server Function with "use server", as covered in the earlier chapters.2 min readuseActionState. A Server Function call is a network round trip, so the interface needs to show that work is in progress. It can also show the expected result before the server confirms it.2 min readuseActionState, as covered in earlier chapters. It also assumes you know what a React error boundary is. Here you will decide where each kind of failure goes.2 min readFormData. It also assumes you know what the "use server" directive marks. The chapter covers what a Server Function exposes, what it does not protect you from, and the checks every one s3 min readasync/await, and you have defined a Server Function with "use server". It covers two ways to give a Server Function extra data, and why one of them needs care.2 min read"use server" to work? How does the page show new data after a Server Function changes 3 min read