Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

event.target.name in setstate

inputChangeHandler: function ({ target: { id, value }) {
    this.setState({ [id]: value });
},
 
PREVIOUS NEXT
Tagged: #setstate
ADD COMMENT
Topic
Name
5+2 =