JSFiddle - React, Tailwind, and code Playground

by edwardsharp

HTML

<div id="test"></div>

JavaScript

(async function main() {
  const data = await fetch('http://echo.jsontest.com/foo/bar/baz/beep')
    .then(res => res.json())
    .catch(err => console.error(err))

  const test = document.getElementById('test')

  test.innerHTML = data.foo
})()