The hardest part about learning react is not actually learning how to use react but instead learning how to write good clean react code.
In this a...
For further actions, you may consider blocking this person and/or reporting abuse
You don't need refs for handling form inputs either. You can access the input values directly from the form data in the form onSubmit or onChange event.
yes, I added code snippet.
Thanks for the post.
You can also remove the "import useRef" from that snippet.
Using refs instead of state when you don't need to re-render is a great one.
But the example could be something else to be clearer imo.
it seems like you forgot to add the abort signal to the request in the last example :-?
I fixed it, thanks.
This is really help me, thanks man
bookmarked
Nice code snippets
A good read, will save this for later
Thanks for this very Informative write-up, Man!!.
Solid article!
This is spectacular information, especially the first tip
Great, Thank you
Using ref over useState, i loved :love
no idea about this abort thing, never heard of. thanks. What is the gain?
It was very helpful to me.
Nice article! Developers often forget aborting the previous request. It's quite important especially when calling an API many times (even if using debouncing or throttling).