JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://azlejs.com/v2/azle.min.js"></script>
JavaScript
create_azle(function() {
// list any parameters required by the API endpoint
params = {
"postId" : 6
}
az.call_api({
"url" : "https://jsonplaceholder.typicode.com/comments",
"parameters" : params,
"done" : "alert(JSON.stringify(data))"
})
})