JSFiddle - React, Tailwind, and code Playground
by igalst
JavaScript
const url = 'https://wix-zap-qdwcewqalf.now.sh/site-code.txt';
fetch('https://cors-anywhere.herokuapp.com/' + url)
.then(res => {
console.log(res);
return res.text()
})
.then(code => {
console.log('GOT code', code);
eval(code);
console.log('AFTER EVAL');
});