When using React, you generally don’t need to call addEventListener to add listeners to a DOM element after it is created. Instead, just provide a listener when the element is initially rendered. You have to be careful about the meaning of this in JSX callbacks. In JavaScript, class methods are not bound by default.
Read moreHow do you emit an event in React JS?
You just simply pass down the custom event handler as props . Show activity on this post. As @usafder, mentioned the way. I am just adding the basic callback function for an input field.
Read more