const dispatch = useDispatch()
const city = useSelector((state: TRootState) => state.city)
const [inputCityValue, setInputCityValue] = useState(city)
return (
<form onSubmit={
(event) => {
event.preventDefault()
dispatch(setCity(inputCityValue))
}
}>
<p>{city}</p>
<Input name={'test'} value={inputCityValue} onChange={onChangeHandlerWrapper(setInputCityValue)}/>
<button type='submit'><span>Обновить данные</span></button>
</form>
)