JSFiddle - React, Tailwind, and code Playground

by Joe Saad

JavaScript

//const uri = "https://jsonplaceholder.typicode.com/posts"
const uri = "https://dfa-cdn-stage.pwc.com/documents/terms/en/terms-and-conditions.json"
/*
const getTerms = async () => {
	const response = await fetch(uri)
  console.log(response)
  return response
}

getTerms().then(x=> {
  console.log(x)
})

*/

const headers = {
	contentLanguage: "en", 
}

fetch(uri, {headers}).then(r=> r.json()).then(response => {
console.log(response)
})