Next.js is NOT all JavaScript

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

КОМЕНТАРІ • 45

  • @trok1
    @trok1 9 місяців тому +62

    If John Wick choose web development 😂

  • @thebestchillsounds4780
    @thebestchillsounds4780 9 місяців тому +13

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

    • @superuserdo476
      @superuserdo476 9 місяців тому +2

      Dave Gray makes it easier and fun❤

    • @thebestchillsounds4780
      @thebestchillsounds4780 9 місяців тому

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

  • @CRUSHED_GREMLIN_RL
    @CRUSHED_GREMLIN_RL 9 місяців тому +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  9 місяців тому +6

      I try to learn a little something new everyday 🚀

    • @kipfitpal
      @kipfitpal 9 місяців тому +2

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

  • @yaqubadesola1839
    @yaqubadesola1839 9 місяців тому +1

    Go Dave…….always a banger

  • @eugenem529
    @eugenem529 9 місяців тому +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  9 місяців тому +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 9 місяців тому +1

      @@DaveGrayTeachesCode
      Ah! Get it now! Thanks!

  • @saeedkhazalvand4821
    @saeedkhazalvand4821 9 місяців тому +2

    I never think ... that was amazing 🎉❤

  • @arunbm123
    @arunbm123 9 місяців тому +2

    Dave is brilliant

  • @coderush24
    @coderush24 9 місяців тому +3

    When is the django video 3 coming?

  • @dough-pizza
    @dough-pizza 9 місяців тому

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

  • @yerenzter
    @yerenzter 4 місяці тому

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

  • @anjulashanaka1477
    @anjulashanaka1477 8 місяців тому

    What is the extension that truncated the tailwind classes?

  • @abdulazeezanimashaun5426
    @abdulazeezanimashaun5426 9 місяців тому +1

    My favourite teacher ❤

  • @henriquematias1986
    @henriquematias1986 9 місяців тому +1

    How do you avoid server variables leaking to the client?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  9 місяців тому +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.

  • @laxmiprasanna4092
    @laxmiprasanna4092 9 місяців тому +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  9 місяців тому +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 9 місяців тому +2

      @@DaveGrayTeachesCode yes. Not all js.

  • @isururanawaka5839
    @isururanawaka5839 9 місяців тому

    But does it react like a SPA then?

  • @hollycow8171
    @hollycow8171 9 місяців тому

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

  • @ralpha112
    @ralpha112 7 місяців тому

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

  • @angry_moose94
    @angry_moose94 9 місяців тому

    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  9 місяців тому

      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 9 місяців тому +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  9 місяців тому +1

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

    • @angry_moose94
      @angry_moose94 9 місяців тому

      @@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

  • @Salehalanazi-7
    @Salehalanazi-7 9 місяців тому +1

    Cool insight

  • @kipfitpal
    @kipfitpal 9 місяців тому

    Badass 🔥

  • @kimhwanhoon
    @kimhwanhoon 9 місяців тому +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 7 місяців тому

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

  • @DeepakSankhyan
    @DeepakSankhyan 9 місяців тому +1

    oh Cool....

  • @samislam2746
    @samislam2746 9 місяців тому +1

    WWOWOWOWOWWWW!!!!!!

  • @sniz-mangalore3562
    @sniz-mangalore3562 9 місяців тому

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