result as data?
const res = await fetch('http://localhost:1234/whatever');
const data = await res.json();
const data = await fetch('https://cat-fact.herokuapp.com/facts').then(response => response.json());
Обсуждают сегодня