JSFiddle - React, Tailwind, and code Playground

by Michael Geary

JavaScript

let script = document.createElement( 'script' );
script.addEventListener( 'load', () => {
    alert( 'three.js is loaded: ' + THREE );
});
script.src = 'https://ajax.googleapis.com/ajax/libs/threejs/r84/three.min.js';
document.head.appendChild( script );