Fetch a list from the server
Your task In the effect, fetch the recipes and put them in state: fetch("/api/recipes").then((res) => res.json()).then((data) => setRecipes(data));
Getting the editor ready
Your task In the effect, fetch the recipes and put them in state: fetch("/api/recipes").then((res) => res.json()).then((data) => setRecipes(data));
Getting the editor ready