const onSearchValue = (e:React.KeyboardEvent<HTMLInputElement>):void =>{ setSearchInputVal(e.currentTarget.value); console.log(searchInputVal); }