React Hook, Hooks, React.
const [value, setValue] = useState(‘’); return <input value={value} onChange={e => setValue(e.target.value)} />; }; export default MyComponent; NOTE:useState() function uses initial value,current value and updating value const [currentValue,UpdatingValue]=useState(initialValue)//array destructuring