Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react onSubmit get form values

handleSubmit = (event) => {
  console.log(this.inputNode.value) 
}

<input type="text" name="username" ref={node => (this.inputNode = node)}/> 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #onSubmit #form #values
ADD COMMENT
Topic
Name
7+5 =