React UseEffect Hooks
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)...
sannyblog.hashnode.dev4 min read