JSFiddle - React, Tailwind, and code Playground

by Sahin Deniz

JavaScript 1.7

let getIt = async() => {
  let response = await fetch('https://jsonplaceholder.typicode.com/todos/1');
  let data = await response.json();

  return data;
}

(async () => {
  let a = await getIt();
  console.log(a);
})();