Loading tutorials
useState, and useEffect. You should also be comfortable with async functions, promises, and fetch. You do not need to know about forms or Server Functions yet. Later chapters cover them.3 min readuseState, and async/await. It also assumes you have seen useTransition and its isPending flag. If not, review them first. Here you will build the model that the rest of the tutorial relies on.3 min readuseState, async functions, and fetch. It also assumes you have seen the browser FormData API. You should already know what an Action is from the previous chapter: an async function that React runs inside a transition.2 min readFormData, and the <form action={fn}> pattern from the previous chapter. It covers what React does to the fields when an Action finishes, and how to work with that behavior.3 min readaction prop accepts a function (covered in the previous chapter), and are comfortable with async functions and FormData.3 min readuseState, async functions, fetch, and the browser FormData API. It also assumes you have seen a function passed to a form's action prop.3 min readuseActionState, form action functions, and FormData, and that you can read async/await and fetch. It covers what an Action should do when something goes wrong, and where each kind of problem should go.2 min readuseState, form action props with FormData, and the Action model from earlier chapters. An Action is an async function that React runs inside a transition.3 min readuseActionState, useFormStatus, and useOptimistic in a single form. It assumes you know each hook on its own, including that a function passed to <form action> runs as an Action and receives FormData.2 min read<form action>, read values from FormData, and use useActionState. Those were covered earlier in this tutorial. Here you apply them to functions that run on the server.2 min readuseActionState, the form action prop, and FormData from the earlier chapters. It also assumes you have a framework that supports Server Functions, such as Next.js with the App Router. Plain client-side React cannot do what this chapter describes.3 min read<form action>, read FormData, and return results with useActionState. It also assumes you have seen a Server Function in a framework that supports them. Here you will learn what a Server Function exposes and how to protect it.3 min read