Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get data from input field in react js

also use usestate then connect useState to input box by using setName()

<input placeholder="example Mike" 
onChange={(event) => {setName(event.target.value);}} />
 
PREVIOUS NEXT
Tagged: #data #input #field #react #js
ADD COMMENT
Topic
Name
8+7 =