DEV Community

Discussion on: 5 Critical Tips for Composing Event Handler Functions in React

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Like it a lot - just not really sure you need a ref in an event hander. Your code is doing event.target.value and event.target === the ref you are making I believe...