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.
Solid article!
A good read, will save this for later
Great, Thank you
Nice code snippets
This is spectacular information, especially the first tip
no idea about this abort thing, never heard of. thanks. What is the gain?
bookmarked
Using ref over useState, i loved :love
Thanks for this very Informative write-up, Man!!.
This is really help me, thanks man
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).