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.
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 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 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
If John Wick choose web development 😂
I appreciate the comparison. Be nice to my dog.
😂
I really need to dive into next. It looks so fun and easy
Dave Gray makes it easier and fun❤
@@superuserdo476 Following Dave's tutorials/instructions is easy and fun*
I really wan to know how do you get so much in depth knowledge in so short period of time? 😮... You rock man... ❤
I try to learn a little something new everyday 🚀
You have to take his advice on prioritising progress over perfection.
Dave is brilliant
Go Dave…….always a banger
I never think ... that was amazing 🎉❤
My favourite teacher ❤
Sorry, I don’t get it. How is it possible to use ‘use client’ with async function? Have I missed a new version?
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.
@@DaveGrayTeachesCode
Ah! Get it now! Thanks!
So react has become something like templating engines like puj, ejs and jsp?
When is the django video 3 coming?
Each week on Friday
What is the extension that truncated the tailwind classes?
Tailwind Fold.
This is how you bypassed the NoScript addon or the Brave's anti tracker addon.
Next js is all about javascript. You just disabled js in the client, but not in server. Javascript is executed in the server.
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.
@@DaveGrayTeachesCode yes. Not all js.
How do you avoid server variables leaking to the client?
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.
Cool insight
But does it react like a SPA then?
No. Next.js is a new mental model in many ways.
server action or server rendering means not in browser but from server. are you teaching kids basic?
Badass 🔥
What?? “Server Action” it runs in server , not in browser, are you kidding 🤦🤦
oh Cool....
WWOWOWOWOWWWW!!!!!!
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.
Yes the JavaScript is disabled in the browser. Therefore it is not ALL JavaScript. It is a smart use of the form API.
@@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.
@@angry_moose94 True. And a smart use of that feature by Next.js.
@@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
Yeah...
Its not previous js.
Its Next js😂
I don’t know why people are so focused with server actions working without javascript, who doesn’t use javascript these days?
True. It's just cool that they do.
whats the point? Dont 99% of users have javascript enabled?