Data is coming but not displaying
[![Data is showing in the consel][2]](https://www.lemona.fr/i.sstatic.net/9kPMn.png)
Following is my useFetch code I just want to display the todo details
import { useEffect, useState } from "react";
const useFetch = url => {
const [data, setData] = useState([]);
useEffect(() => {
getData();
}, []);
const getData = async () => {
try {
const response = await fetch(url)
const data = await response.json();
setData(data)
} catch (error) {
console.error("Error from Fetch:", error);
}
}
return data;
}
export default useFetch;
