Verwendungseffekt in React 18 in StrictMode
useEffect(() => {
const controller = new AbortController();
fetch("/people", {
signal: controller.signal,
})
.then((res) => res.json())
.then(setPeople);
return () => controller.abort();
}, []);
Irfan