Next.js is NOT all JavaScript

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

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

  • @trok1
    @trok1 10 месяцев назад +62

    If John Wick choose web development 😂

  • @thebestchillsounds4780
    @thebestchillsounds4780 10 месяцев назад +13

    I really need to dive into next. It looks so fun and easy

    • @superuserdo476
      @superuserdo476 10 месяцев назад +2

      Dave Gray makes it easier and fun❤

    • @thebestchillsounds4780
      @thebestchillsounds4780 10 месяцев назад

      @@superuserdo476 Following Dave's tutorials/instructions is easy and fun*

  • @CRUSHED_GREMLIN_RL
    @CRUSHED_GREMLIN_RL 10 месяцев назад +7

    I really wan to know how do you get so much in depth knowledge in so short period of time? 😮... You rock man... ❤

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 месяцев назад +6

      I try to learn a little something new everyday 🚀

    • @kipfitpal
      @kipfitpal 10 месяцев назад +2

      You have to take his advice on prioritising progress over perfection.

  • @arunbm123
    @arunbm123 10 месяцев назад +2

    Dave is brilliant

  • @yaqubadesola1839
    @yaqubadesola1839 10 месяцев назад +1

    Go Dave…….always a banger

  • @saeedkhazalvand4821
    @saeedkhazalvand4821 10 месяцев назад +2

    I never think ... that was amazing 🎉❤

  • @abdulazeezanimashaun5426
    @abdulazeezanimashaun5426 10 месяцев назад +1

    My favourite teacher ❤

  • @eugenem529
    @eugenem529 10 месяцев назад +3

    Sorry, I don’t get it. How is it possible to use ‘use client’ with async function? Have I missed a new version?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 месяцев назад +3

      Yeah it didn't need the async on the form. I type it so often, sometimes it slips in there. This is about the server action. Nothing async about submitting the form. This just uses the form API.

    • @eugenem529
      @eugenem529 10 месяцев назад +1

      @@DaveGrayTeachesCode
      Ah! Get it now! Thanks!

  • @dough-pizza
    @dough-pizza 10 месяцев назад

    So react has become something like templating engines like puj, ejs and jsp?

  • @coderush24
    @coderush24 10 месяцев назад +3

    When is the django video 3 coming?

  • @anjulashanaka1477
    @anjulashanaka1477 9 месяцев назад

    What is the extension that truncated the tailwind classes?

  • @yerenzter
    @yerenzter 5 месяцев назад

    This is how you bypassed the NoScript addon or the Brave's anti tracker addon.

  • @laxmiprasanna4092
    @laxmiprasanna4092 10 месяцев назад +5

    Next js is all about javascript. You just disabled js in the client, but not in server. Javascript is executed in the server.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 месяцев назад +2

      As you said, there is no JS running in the browser and yet it still works. Therefore, it is not ALL JavaScript. It is a cool use of the Form API.

    • @laxmiprasanna4092
      @laxmiprasanna4092 10 месяцев назад +2

      @@DaveGrayTeachesCode yes. Not all js.

  • @henriquematias1986
    @henriquematias1986 10 месяцев назад +1

    How do you avoid server variables leaking to the client?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 месяцев назад +2

      The "use server" declaration at the top of the actions file keeps it on the server. You're just calling the function via the Form API.

  • @Salehalanazi-7
    @Salehalanazi-7 10 месяцев назад +1

    Cool insight

  • @isururanawaka5839
    @isururanawaka5839 10 месяцев назад

    But does it react like a SPA then?

  • @hollycow8171
    @hollycow8171 10 месяцев назад

    server action or server rendering means not in browser but from server. are you teaching kids basic?

  • @kipfitpal
    @kipfitpal 10 месяцев назад

    Badass 🔥

  • @ralpha112
    @ralpha112 8 месяцев назад

    What?? “Server Action” it runs in server , not in browser, are you kidding 🤦🤦

  • @DeepakSankhyan
    @DeepakSankhyan 10 месяцев назад +1

    oh Cool....

  • @samislam2746
    @samislam2746 10 месяцев назад +1

    WWOWOWOWOWWWW!!!!!!

  • @angry_moose94
    @angry_moose94 10 месяцев назад

    What are you on about it’s not all JavaScript? What is it then? Of course it’s JavaScript. You disabled JavaScript on the client (browser) but your server action is running on… the server. The server is a node environment which runs…. JavaScript.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 месяцев назад

      Yes the JavaScript is disabled in the browser. Therefore it is not ALL JavaScript. It is a smart use of the form API.

    • @angry_moose94
      @angry_moose94 10 месяцев назад +1

      @@DaveGrayTeachesCode Ahh i see what you mean. What you said is true but it's not specific to next.js. For all the server knows, it receives the same request by pressing "submit" on the html form as it would if you sent the form data using js. It's just a feature of html that is handled by the browser itself.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  10 месяцев назад +1

      @@angry_moose94 True. And a smart use of that feature by Next.js.

    • @angry_moose94
      @angry_moose94 10 месяцев назад

      @@DaveGrayTeachesCode sorry just read more about these server actions using forms. Next.js mentions that it extends the native form api. Perhaps it autocreates creates a route for that server action to be used and other form handling functionalities. Regardless cool feature as mentioned and cool video. Cheers

  • @sniz-mangalore3562
    @sniz-mangalore3562 10 месяцев назад

    Yeah...
    Its not previous js.
    Its Next js😂

  • @kimhwanhoon
    @kimhwanhoon 10 месяцев назад +1

    I don’t know why people are so focused with server actions working without javascript, who doesn’t use javascript these days?

  • @warguy6474
    @warguy6474 8 месяцев назад

    whats the point? Dont 99% of users have javascript enabled?