Published
- 1 min read
how to use pass value to the function that was called onchange in react
The solution for this is noted below
how to use pass value to the function that was called onchange in react
Solution
// This will not call handleChange on render cycle
// insted will call the function on change in the input field
<fieldset onChange={(e) => this.handleChange("tags", e)}>
Try other methods by searching on the site. That is if this doesn’t work