I guess this is what passes in React as "simple".
In Svelte, simple looks like this:
let data;
onMount(async () => {
const response = await fetch(url, options);
data = await response.json();
});
That's it. Good article, BTW. I'm just here to open people's eyes about how difficult everything is in React. Cheers.