const result = async () => {
const { data } = await axios.get<isFood>("http://localhost:9000/stores");
console.log(data);
setData(result);
};
Argument of type '() => Promise' is not assignable to parameter of type 'SetStateAction'.
Type 'Promise' is not assignable to type 'undefined'.ts(2345)