The BEST Way of Doing Forms in Next.js (and all the other ways)

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

КОМЕНТАРІ • 9

  • @mdeutschmann
    @mdeutschmann 2 місяці тому

    Very helpful content 🤙What kind of screen-recording tool you are using?

  • @ibrahim_youssef_13.12
    @ibrahim_youssef_13.12 4 місяці тому +1

    Great as always, please design Next project and during coding teach us the bad practices lead to unhandled errors

    • @tobitacklestech
      @tobitacklestech  4 місяці тому +1

      Great suggestion! I will take a Look on it

    • @ibrahim_youssef_13.12
      @ibrahim_youssef_13.12 4 місяці тому

      @@tobitacklestech I will remember you of your promise ☺️☺️

  • @saulgodman7872
    @saulgodman7872 2 місяці тому

    Thanks for your work :)
    One question, React 19 will replace the useFormState with useFormAction hook (React-dom), but I don't know why they do this. useFormAction() do the same as useFormState(). Or am I wrong here? Sorry for the off-topic :)

    • @tobitacklestech
      @tobitacklestech  2 місяці тому

      I think the new function is called useActionState
      The reason for this change is that `useActionState` is more versatile and not limited to just form submissions. It can be used with any action, whether it's triggered by a form or not. This aligns with React's move towards a more general "Actions" concept rather than being form-specific.

  • @govindpvenu
    @govindpvenu Місяць тому

    what about next/form in next 15?

    • @tobitacklestech
      @tobitacklestech  Місяць тому +1

      The new Form Component has some great benefits, maybe I will make a video about it!