This React Hook is a Game Changer (useActionState)

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 7

  • @SupremelyAverage
    @SupremelyAverage 20 годин тому +3

    why not use react-hook-form or Formik instead? Does this has any advantage over those?

    • @janmarshalcoding
      @janmarshalcoding  14 годин тому

      React Hook Form and Formik are client-side validation libraries. When you have a form, you’ll likely want to store the data in your database. For that, you would use a server action. However, when using a server action, you’ll also need server-side validation. Since server validation is required, you’ll want to display the errors on the frontend. Additionally, whenever you want to return any data from a server action, you’ll need this hook...

  • @markus_dev_cwb
    @markus_dev_cwb День тому

    Tks Jan!

  • @maskman4821
    @maskman4821 День тому

    Thank you so much, this hook is very useful, hopefully you can also talk about the new Form component, how to use it and how it differs from form element ❤

  • @spashak6
    @spashak6 День тому

    My beloved channel from Burkina-Faso

  • @oluboinoni9617
    @oluboinoni9617 День тому

    How can it be use with conform?

  • @EthanHunt-z8r
    @EthanHunt-z8r День тому

    I Would never need any other video or documnetation to understand useActionState