I have a method for fetching data from an api, something like this:
const [data, setData] = useState([]); const fetchData = () => { const newData