await fetch("/products");
await fetch("/categories");
await fetch("/users");
اما با Promise.all شاید حوالی 1 ثانیه طول بکشه:
const [products, categories, users] =
await Promise.all([
fetch("/products"),
fetch("/categories"),
fetch("/users"),
]);
@Mern_stack_01