Here is a really useful little function that I use all the time in my react applications. It just picks out the value from the event target, which is what I usually need access to
Here is a really useful little function that I use all the time in my react applications. It just picks out the value from the event target, which is what I usually need access to
This is a similar function for checkboxes and radio buttons.
And this is the third tiny function I have in all my react projects. It simply prevents the default action from happening.