JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajax({
url: 'https://swapi.co/api/people/1/',
contentType: "application/json",
dataType: 'json',
success: function(result){
console.log(result);
}
})