I stored string that typed in input tag but it isn't same as typed.
const[name,setName]=useState('');
.....
.....
<input type="text" placeholder='search' onChange={(event)=>{setName(event.target.value)}} value={name}/>
please enter a sample string and then see the console