JSFiddle - React, Tailwind, and code Playground

by Cameron Bernhardt

HTML

<body>
     <h1>SAT Question of the Day</h1>

    <div id="contents"></div>
</body>

CSS

h1 {
    text-align: center;
    font-family: Sans-Serif;
}

JavaScript

var req = new XMLHttpRequest();
var url = "http://www.kimonolabs.com/api/a9tmzsfm?apikey=74ef20963a82fa61fe92928fd750f7ce";

req.open('GET', url, true);
req.onload = function (e) {
    if (req.readyState == 4 && req.status == 200) {
        if (req.status == 200) {
            var response = JSON.parse(req.responseText);
            $("#contents").html(response.name);
        }
    }
};

req.send(null);