get value of input react
import { useState } from 'react'; function myFunctionalComponentFunction() { const [input, setInput] = useState(''); // '' is the initial state value return ( <div> <label>Please specify:</label> <input value={input} onInput={e => setInput(e.target.value)}/> </div> ); }