JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

JavaScript

$.ajax({
        url: 'https://swapi.co/api/people/1/',
        contentType: "application/json",
        dataType: 'json',
        success: function(result){
            console.log(result);
        }
    })