Please can you make a review of the exchange-router module on npm
@GaryMenzel Жыл бұрын
I'll at least echo some of what has already been said. React Hook Form has a lot of additional features that this new hook wont cover - so I'll be sticking with that. While I don't consider it to be "magic" (clearly the tag now has a context associated with it), it still feels like a little bit of "sleight of hand-ish". In RHF you explicitly have to use their context component to be able to refer to the enclosing form in child components. So there is some level of "mystery" with this new React hook. I can see that it may help isolate naming conflicts but just how many places in a component containing form do you really need a "pending" state? If you are writing tightly-purposed components... maybe once in that component? So I think naming clashes are going to be rare. Also, as pointed out, there's not much difference in the amount of code being written and the benefits come more to those using React in a SSR environment - especially where FormData is prominent.
@Andy-si1pl Жыл бұрын
Yeah I instantly thought reacr-hook-form too. I guess eventually it may be redundant
@MrMudbill Жыл бұрын
The input ref wasn't really needed in the previous implementation anyway, since you automatically get refs for named inputs within forms in the FormEvent given in onSubmit. You can have a near-identical implementation for onSubmit by doing `const data = new FormData(e.currentTarget)`.
@axelramirezludewig306 Жыл бұрын
Nice one
@dmytrk Жыл бұрын
I'm using react-hook-form for this and it gives additional benefits, such as schema validation with various libs (Yup, Zod, etc.)
@caincobain9318 Жыл бұрын
that's exactly how remix run are handling forms, I was surprised how no one in the comment or even you Kyle did monition it.
@joepetrillo6185 Жыл бұрын
Does anyone have a guess on when these new hooks will be released as stable? Seems like they should have existed long ago.
@Dev-Siri Жыл бұрын
Seems like it will take some more time because this is a fairly recent feature that is a complement to Server Actions (SA are still in alpha)
@sokoyaadedolapo5321 Жыл бұрын
Always check their documentation
@sicfxmusic Жыл бұрын
I don't know bro, maybe check their roadmap.
@joepetrillo6185 Жыл бұрын
@@sicfxmusic ok bro
@bogdanfilimon2486 Жыл бұрын
These all “new concepts” from react / vercel / nextjs team is taken from Remix. So you can just use Remix and have all the goodies stable (in general).
@mma93067 Жыл бұрын
Mantine’s useform + zod feels light years ahead tho
@YourEverydayDeveloper Жыл бұрын
react solves problems that react has created in the first place
@hassanshahid9499 Жыл бұрын
your course is best for React Hooks , Appriciated
@magicfibre Жыл бұрын
Is passing a callback to the "action" something that also comes with the new React version, or is it something that exists already? If it's available in the current version of React, why aren't we using it instead of onSubmit?
@anonymous_dev9472 Жыл бұрын
Kyle, pls bring out a full length react course on youtube 🙏🏻
@Avarn388 Жыл бұрын
Nice. It was just dealing with this bug in my application so seeing this being addressed with a new hook, it’s right up my alley. Thank you.
@fave1201 Жыл бұрын
Nice video. I prefer the first method though. At times, there may be some logic to be done like show a toast and just having one loading state that's your single source of truth seems easier and more straightforward.
@kaas99 Жыл бұрын
This seems pretty similar to AntD implementation of Form but, it's good to have this out of the box.
@Gimalaev Жыл бұрын
The only channel whose speed I'm slowing down.
@greybluesea Жыл бұрын
same here, speed 0.75 for Kyle
@Rohan-u6j Жыл бұрын
Thanks a lot for this tutorial.
@NOTHING-en2ue Жыл бұрын
very great tutorial, thanks a lot ❤
@axelramirezludewig306 Жыл бұрын
This is truly epic! The php feel
@noelethan6230 Жыл бұрын
Great tutorial, can see react is getting a PHP feel
@hawarhekmat1174 Жыл бұрын
why i love nextjs ❤❤❤❤
@helleye311 Жыл бұрын
if only this wasn't formdata I'd be excited. But I really don't like working with that. I mean sure it's native and it technically makes sense, but json is just so much nicer most of the time. Only time I use FormData is with file upload, and I always hate every minute of it.
@parassharma7041 Жыл бұрын
Thank you🎉
@hireetech Жыл бұрын
Awesome!😍
@ziadx3 Жыл бұрын
i love this react hook!
@williamliu796 Жыл бұрын
would you use this over react hook form?
@oscardasilva971 Жыл бұрын
I was wondering the same
@wchorski Жыл бұрын
it's nice for learning cutting edge, but would never use any alpha/beta in a production product. React Hook Form, is meant to be used in production out of the box
@TannerBarcelos Жыл бұрын
Like William said, in prod I’d stick to RHF, but once this goes stable, I’d be more inclined to use this as it’s built in and requires less package overhead in my bundles.
@greybluesea Жыл бұрын
BTW, does the 'data' of 'FormData' type has a method to allow us to set it blank right after submit?
@bikbokken6040 Жыл бұрын
When will your NextJS course be released on your course platform? :D
@LaravelScreencast Жыл бұрын
I feel using state is easier, and creating a custom form component😀!
@Pedro-yq8ro Жыл бұрын
Hey Kyle great vid, listen how can I use env vars with vite + react?
@abhinavtariyal6099 Жыл бұрын
What about useNavigation hook? How is it different from this hook?
@TannerBarcelos Жыл бұрын
Why this wasn’t the behavior from day 1, idk. But this is a beautiful addition.
@govinda399 Жыл бұрын
thanks guruji :)
@ajlmusic Жыл бұрын
Awesome!
@tak68tak Жыл бұрын
would this affect Next.js Server Action?
@pieter5466 Жыл бұрын
The first minute of this video reminds me of how important consistent dog-fooding of your own [company's] application is. You can't just develop on your local machine, and under/for your own circumstances, technical and other. You must incorporate a realistic range of devices, network/speed ranges, screen sizes, etc. into your dev iterations, AND frequently use your app out in the wld.
@luisfrocha1 Жыл бұрын
This is pretty much how useFetch works on Nuxt 3, except it doesn't require tying specifically to a form.
@Marcosmapf Жыл бұрын
4:20 lost me on creating a new and unecessary abstraction just to provide context to the tool, doesn't feel like a good syntax
@simbarashemaunga5575 Жыл бұрын
Neat, but I will stick to disabling the button though
@salixar Жыл бұрын
geez React gets overloaded with hooks that are really just workarounds for basic stuff. Instead of clean code we get a bunch of functions that have some "magic" going on under the hood. Maaan as I get older, I tend to dislike React very much.
@Shebu Жыл бұрын
Same
@YourEverydayDeveloper Жыл бұрын
thats exactly what happens
@dixztube Жыл бұрын
I agree. I’m not doing my next project in react.
@developer_bola Жыл бұрын
Hi Kyle! I need crud app with json server lesssons! Please tech it and upload lesson
@gendumaladi9448 Жыл бұрын
Still too many line codes. If It was related tô the structure of the like a paramater telling to "wait" the onclick function to happen.
@raistlinmajere2257 Жыл бұрын
Why don't you have any angular tutorials?
@daveckw Жыл бұрын
isnt this even more complicated than the original isLoading
@XboxArqain Жыл бұрын
Use react-hook-forms is the best
@borjinator5 ай бұрын
The fact that this is an experimental feature was not put into the title or thumbnail, giving this a thumb down.
@chesterxp508 Жыл бұрын
GoodJob!
@firedforfighting Жыл бұрын
Personally I feel this is just unecessary, maybe for really complex multistep forms like a visa application software I can understand but to me there is no way that your initial solution or a oneline debounce function is more complicated than implementing all of this especially compared to your complaints being "an extra loading variable??, difficult getting names correctly??" like what?, I'm happy for the vid though
@richardvsiansky6950 Жыл бұрын
Data Driven Forms is still a way to go for me. This is really limited. :/
@TM_LBenson Жыл бұрын
I always turned my submit button into a spinner until I get a reply from the api
@roycechriston5389 Жыл бұрын
I do the same
@i-am-the-slime Жыл бұрын
This can't happen when using RemoteData in PureScript
@muneebkarim3738 Жыл бұрын
Bro I am From Pakistan, For me Your courses are too Expensive 🥺🥺
@dixztube Жыл бұрын
What would be a good usd cost for Pakistan viewers. Impressive you know English.
@usmanabdurehman97 Жыл бұрын
You don't need to buy anything. There is enough free material present on the internet to learn from. I am a self taught developer and learnt everything for free.
@DanelonNicolas Жыл бұрын
I wasn't subscribed... sorry bro, love your channel
@lucascorey3475 Жыл бұрын
Imagine not using Svelte.
@wishmeheaven Жыл бұрын
1. I'll pretend that I managed to follow everything you said. 2. It is not the first time that you are uploading content of hooks with an experimental status. And what if the experiment will fail..? I find this urgency for being the first one talking about it, at least...... Questionable.
@evgeniik_ Жыл бұрын
I am so far away.
@DannonDARKO Жыл бұрын
Can we finally stop using todo stuff for react tutorials?
@HarryHobbit Жыл бұрын
You should have started the video by saying this is an experimental hook! 🙄
@mdmofazzalhossain77 Жыл бұрын
not that much helpful. Give us the best way of handling form data without pre rendering
@thesunabsolute Жыл бұрын
Meh, the old way is easier.
@shamaeelahmed3561 Жыл бұрын
I just started react and i don't know what projects to make ..... can anyone help me out