Loading tutorials
async/await code and know that a Server Component renders on the server and a Client Component renders in the browser. The previous chapter covered where each kind of component runs. This chapter covers6 min readasync/await, and HTML forms with FormData. It also assumes you know the earlier chapters' point that "use server" marks fu6 min read"use server" directive and know how to define a Server Function. Here you will learn how a Client Component gets a Server Function and what happens whe6 min readasync/await, and read FormData. It also assumes you know the basic request and response flow of HTTP. You should have read the earlier chapters on what "use server" marks and on calling Server Functions from Client Components5 min readFormData work. It also assumes you have read the earlier chapters on what "use server" marks and how to define Server Functions. Here you will wire a Server Function to a <form>, see wha6 min read"use server" marks, how to define a Server Function, and how to pass one to a form's action prop. You also need working knowledge of React hooks, async/await, and FormData.5 min readFormData object. It also assumes you know the basic request and response flow between a browser and a server. You should already know what "use server" marks and how to define and call a Server Function.6 min read"use server" file or inline in a Server Component. It also assumes you know that a form's action prop accepts a function that receives FormData. You should be comfortable with Function.prototype.bind and JavaScript closures. Earlier c6 min read"use server" to work at all? And once a Server Function changes data, how does the page show the new data?7 min read