UseEffect with infinite loop fix export default function DataLoader() { const [data, setData] = useState([]); useEffect(() => { fetch("http://localhost:3001/links/") .then(response => response.json()) .then(data => setData(data)...
State&Behaviour Matters
Comments are turned off for this post.