JSFiddle - React, Tailwind, and code Playground

by yiiBoy

JavaScript

fetch(
  'https://example.com',
  {  method: 'GET' }
  )
  .then( response => response.json() )
  .then(function(json){
  console.log(json);
})
  .catch(e=>console.log(e.message))