Loading tutorials
useState, and useEffect. It also assumes you can read async/await code and know what fetch returns. The previous chapter showed that startTransition accepts an async function and that isPending stays true while it runs. This chapter 6 min readuseState, the difference between controlled and uncontrolled inputs, async functions with fetch, and the basics of the browser FormData API. The earlier chapters introduced Actions and useTransition. Here you apply them to forms.6 min readuseState, and that you know what an uncontrolled input is. It also assumes you have read the earlier chapters on passing a function to <form action> and on the Actions model. Here you will learn when React clears a form for you, which i5 min readaction prop. You should also know that React runs a form action inside a transition. Earlier chapters covered those topics.6 min readuseActionState stores the value your Action returns and exposes it to the component. This lets a form show validation messages, success notices, and server errors without hand-written useState and try/catch plumbing in the component.6 min readuseTransition, the <form action> prop with FormData, and useActionState. You should also be comfortable with try/catch and async/await.6 min readuseState, and that you know the Actions model from the earlier chapters. That means startTransition with an async function, isPending, and a function passed to <form action>. You should also be comfortable with FormData.6 min readuseTransition, useActionState, useFormStatus, and useOptimistic one at a time. It also assumes you are comfortable with FormData and async functions. Here you combine them in a single form and learn which hook owns which job, what order things happen i6 min readaction prop, you can use useActionState and useFormStatus, and you understand async/await and FormData. It adds one idea: the function that runs on submit can live on the server.6 min read<form action>, useActionState, useFormStatus, and Server Functions. It also assumes you know the difference between server renderi7 min readaction prop. This chapter covers what that convenience costs you. A function marked "use server" looks like a local function call, but it is a network endpoint. This chapter shows how to validate its input, authenticate and 7 min read