JSFiddle - React, Tailwind, and code Playground
by Joe Saad
JavaScript
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))
const getFunctions = async() => {
const p = await fetch('https://jsonplaceholder.typicode.com/todos/1')
return p.then(r=> r.json)
}
console.log(await getFunctions());