aguarde no componente de reação no componente de função
const here = async () => {
console.log("here we go");
}
Cautious Cod
const here = async () => {
console.log("here we go");
}
async componentDidMount() {
// when react first renders then it called componentDidMount()
const response = await fetch('https://jsonplaceholder.typicode.com/users');
const json = await response.json();
console.log(json);
}