JSFiddle - React, Tailwind, and code Playground

by Ravshanbek778

JavaScript

var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};

fetch("https://cors-anywhere.herokuapp.com/https://jsonplaceholder.typicode.com/todos/1", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));