Next JS 13.5 server actions are EASY

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 17

  • @WebDevEducation
    @WebDevEducation  Год назад +5

    Are server actions something you're going to start using? 🤔

    • @sanketgawande3667
      @sanketgawande3667 Год назад

      Forms are not that simple these days, state is needed almost each time i use forms. So there's no plan to use server actions yet

    • @WebDevEducation
      @WebDevEducation  Год назад +3

      A form can render client side and still post to a server action (like in this vid), which means you can use any front end / hooks you're used to using, including any state, as long as each form field has a "name" attribute

    • @WebDevEducation
      @WebDevEducation  Год назад +2

      * as long as each form field you want to post to the server action has a "name" attribute

    • @CaseStudyQB
      @CaseStudyQB Год назад

      I plan to start using it

  • @maskman4821
    @maskman4821 Год назад +2

    Great tutorial, I like server action, it makes sense to dealing with form this way, from now on no client side dependencies(useState, useEffect) are required, everything is done in server side, so cool, thank you 🙏

  • @CaseStudyQB
    @CaseStudyQB Год назад

    Thanks for the vid! Great Job!

  • @fujiwara1977
    @fujiwara1977 Год назад

    Hi, what is the main advantage of using a hook, instead of calling just the server action in the form, ex ?

  • @kellingtoncrivelaro3929
    @kellingtoncrivelaro3929 Год назад +1

    I implemented a form using zod validation and server actions that can accomplish this revalidation after each user interaction (including input value changes). If you want to know more about tell me

  • @kushaltanna5569
    @kushaltanna5569 Год назад

    0:22 Why do we need server action.? what do you mean by creating seperate API route.?

    • @WebDevEducation
      @WebDevEducation  Год назад

      I'll do a video response to answer this question :)

  • @crim-son
    @crim-son 11 месяцев назад

    ill honestly just stick to just creating APIs, this is not scalable at all