React Router 12 ⚛️ Form Actions — Handling mutations with actions
The previous chapter covered the data loaders, which fetch the data before the route renders. This chapter covers the counterpart: the form actions, which handle the data mutations after the user submits a form. The loader is the read; the action is the write. In the React Router’s Data mode, the action function is defined…