Next JS Form Validation Using Server Actions

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

КОМЕНТАРІ • 7

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

    Here is the little update from react: last time when I checked react the useFormState hook is changed to useActionState react.dev/reference/react/useActionState

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

    I usually won't comment to videos, but this video made my life easier, thanks a lot, i was struggling with sending additional parameter to server action, thanks a lot, keep going 🎉🎉

  • @LarryOklahoma
    @LarryOklahoma 5 місяців тому

    this is a great video thank you, 1 thing I am confused about is what if you want to handle the errors on the frontend first see if the user inputs are correct then send it to the backend and revalidate it over there, like that the user doesn't need to wait till the server responds to get the authentication info errors the frontend will validate it for you how can we implement that with server actions.

    • @fsniraj
      @fsniraj  5 місяців тому +1

      The thing you are asking about is possible with the traditional React way. You can use useState to store your user info update them with onChange and then use onSubmit instead of action for that you have to create api endpoint where you can submit the form. I don't thing the server action works with this implimentation.

  • @nanami49684
    @nanami49684 5 місяців тому

    I am interested in your full-stack React Native advanced & practical projects course on Udemy. I don't know how to contact you so I write it here. I want to ask whether that course is clean code. Because I am looking for the proper one. I did some projects but it doesn't organized well, and the code was messed up. Thanks

    • @fsniraj
      @fsniraj  5 місяців тому +1

      I don't know how can I answer this question but here is the github link of the final project github.com/ndpniraj/resale-expo that we will build inside this course. You can go through the different branches and view my style of writting of code. Hope you will find the answer.

  • @HelpLord-xb1go
    @HelpLord-xb1go 4 місяці тому

    I am reaching out to discuss an exciting business proposition regarding your Udemy course. Our aim is to enhance the visibility of your course, increase sales, expand your student audience, and cultivate positive reviews.
    I am eager to explore potential collaboration opportunities with you to achieve these objectives.
    Looking forward to the possibility of working together.