Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react event target square brackets

 handleChange(event) {
+    this.setState({
+      [event.target.name]: event.target.value
+    })
+  }
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #react #event #target #square #brackets
ADD COMMENT
Topic
Name
5+4 =