The third parameter of useActionState is for progressive enhancement, it takes the url passed in and you can send the form without any javascript. It has niche use case but if you aim for your app to be accessible it is the way to go.
@EmmanuelOfoneta
2 күн бұрын
Keeping up with new technology, learning and teaching it to people at that instance is such an underrated skill
@itsMohak
7 күн бұрын
Your content is terrific.
@aleksander5298
7 күн бұрын
🤡
@yonnierenton6177
6 күн бұрын
Thanks
@deepjasoliya9137
6 күн бұрын
I have a question, can we manage state of multiple inputs in one useRef ??
@Blockbuster_movies..
7 күн бұрын
you are doing great job man
@yonnierenton6177
6 күн бұрын
I have learned so much from you, thankyou! Please stay awesome 🎉
@Dostendite
2 күн бұрын
Web Dev GOAT
@ajaymishra1511
7 күн бұрын
Just use Remix? or react router
@fakedevdutt
5 күн бұрын
I just saw the documentation for this hook today and you brought up a video about it what a coincidence
@yonnierenton6177
6 күн бұрын
If don't know? Google, "can't please everyone donkey story" classic lol please don't change, keep up the good work.
@Alessandro-nq3tm
7 күн бұрын
Wow this hook is really useful! Thank you for sharing Kyle
@NikhilPanchal-oc5mr
7 күн бұрын
Can you please make video on "Working with Reactjs and Django REST Framwork"
@aleksander5298
7 күн бұрын
Nope, you suck so better change industry
@salmonsadik5809
Күн бұрын
Can you please make a video on handling all types of error while installing npm packages , installing node modules with package.json . 😃
@fadfooood
2 күн бұрын
What about client side validations?
@omega.developer
7 күн бұрын
When it compares to the most used react-hook-form, i think this hook will be the most handful and make sense in upcoming improvements and no need of external dependency. Yeah, its correct that the react package size would increase eventually as well 😅
@omega.developer
7 күн бұрын
Hi kail, I've seen an ad during this video. So, from next time onwards please mention the first Ad seen guy who commented first in the video. Create a video on the weekend and get more subscribers 😅🎉
@omega.developer
7 күн бұрын
If anybody has seen an ad in your video, it would benefit you, right? I mean 💰🤑💵💸
@amirmohammadsanji
7 күн бұрын
could you create a setup tour or room tour video please ?
@dipaksaha6629
7 күн бұрын
Sir please bring some projects videos on next js
@JokeryEU
7 күн бұрын
seems to be an Angular way of doing things with forms :D
@amirmohammadsanji
7 күн бұрын
useActionState🔥🔥🔥
@GoldenMechaTiger
6 күн бұрын
How do you install this?
@ssk7690
7 күн бұрын
I use yup for form handling and react query for fetching, and I have some questions. How do we prefill a form (in case it is an update form). In yup we have setValue which does that.
@mootazbellehweslati5603
7 күн бұрын
If u r using react hook form u can use the reset function after fetching the data the perform the update when the user interact with the form
@MrWolfSRB
7 күн бұрын
Hey, could you make a video about setting up React project that is fully client side? I like structure of NextJS (file based router), but hate the server side of it... I still like to keep things separated, backend and frontend as separated projects... I know NextJS is good for SEO, but for projects like admin dashboards, I would like to use a fully client side React with file based router and code splitting out of box... Is there such a framework, and if not, could you make a video how to set everything up?
@luciusjackson3399
7 күн бұрын
I use an express backend and use nextjs as the frontend 😂😂 I don't care whether it sucks or not
@PraiseYeezus
7 күн бұрын
literally all you have to do is use next/dynamic and disable ssr.
@omedakram8970
7 күн бұрын
How to send image from server action to another backend endpoint..?! I try bunch of example and resources, nothing answer me, in my error say only plain object can send to server data
@magnuserikkeenrobot1117
7 күн бұрын
is this for react v 19?
@НаильШайхинуров-п7л
6 күн бұрын
1:37
@fbiindia9661
7 күн бұрын
ngl i gave up on react lol, i like it but i cant keep up with the variance, but i still watch the videos
@Wakkyguy
7 күн бұрын
Can we use this hook in tandem with react hook form or any other form state management library?
@marwenmrabti2071
7 күн бұрын
actually with this hook you will no longer need react-hook-form. just use it with zod and server action, it is way cleaner and simpler to maintain.
@griffadev
7 күн бұрын
I don't think that's true aside from very basic cases. react hook form does a lot more, such as auto focusing inputs when there are validation errors,. managing arrays of fields such as reordering deleting and adding and much much more. This hooks does very little/almost none of what react hook form gives you
@Wakkyguy
7 күн бұрын
@@griffadev Agreed.
@marcospacaco
7 күн бұрын
Paguei passagem aérea para ir do Rio para SP Capial. Paguei hospedagem e encarei 7h de ônibus para voltar pra casa, vou exigir naa justiça o pagamento de tudo que gastei, ppis não aceito e tenho para repetir. Porque não anula apenas a da sala com problemas?
@josevsebastian2909
4 күн бұрын
"slow enough that javascript is not downloaded yet"? You're joking, right? Or do you not know the actual reason??? That parameter is for progressive enhancement, such that the page can function without javascript, you know, if you have disabled js for e.g. security reasons.
@ShadowsPowerFy
7 күн бұрын
But with nextJs - NextSafeAction seems better than the original.
@macctosh
7 күн бұрын
less code but more complex than the messy code... especialy the gotchas around the third parameter!
@aleksander5298
7 күн бұрын
Skill issue
@macctosh
7 күн бұрын
@@aleksander5298 skill issue for which code? I am just pointing out that messy code worked just fine and straightforward to understand whilst the useActionState Hook introduces "hiddens" pitfals!
@AvikNayak_
7 күн бұрын
@@macctosh what hidden pitfalls are you talking about?
@aleksander5298
7 күн бұрын
@@macctosh 🤡you learned just useState and now your brain cannot compute other simple hook or what? Nothing is hidden
@macctosh
7 күн бұрын
@@AvikNayak_ The thrid parameter of useActionState.
@Leon_Andersen
2 күн бұрын
thank you, great tutorials, one question though, I get irritated from all the wiggling of your head when you talk... are you aware that you are doing this? no offense, if that's a part of you that you don't want or can change, I appreciate your work either way🙏
@plaxor
2 күн бұрын
damn, I can't unsee it now. I noticed his past old videos, his head is just steady, perhaps now it's getting worse, i dont know..
@MrWolfSRB
7 күн бұрын
Still not good enough as react-hook-form :)
@omega.developer
7 күн бұрын
This hook will probably be more handy in the future ;)
@friedricht3908
7 күн бұрын
Actually you can use a server action with react hook form. You just subscribe the form to react hook form and after every client validation, you call the server action. But to do that, you need to drop the action attribute. And call the server action in the function which you call handle submit on
@friedricht3908
7 күн бұрын
@hamedbahram has a very good video on the topic
@josevsebastian2909
4 күн бұрын
FYI, react-hook-form violate rules of react several times over, by design. It's just, currently, there are no better alternatives.
@cloudsss83
7 күн бұрын
you probably dont need that ref
@ymh_7885
6 күн бұрын
Yours videos are very good we all like that but stop shaking you head when you talk lol not good to see
@7heMech
7 күн бұрын
Miss when this channel wasn't just about React.
@әкрәм
7 күн бұрын
mfw one more web dev technology used by millions
@gttmone
7 күн бұрын
But it's not? Look at the other videos idiot
@SidaliTv-h8i
7 күн бұрын
I like your videos, and I have a motion sickness, please, try not to move so much, or hide the face. I watch on TV, so I can't hide the face with another window like I do on pc
Пікірлер: 64