JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//cdn.rawgit.com/mrdoob/three.js/master/build/three.min.js"></script>

CSS

body {
  margin: 0;
}

JavaScript

var camera, scene, renderer, geometry;

init();
animate();

function init() {

  camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.1, 100);
  camera.position.z = 20;

  scene = new THREE.Scene();

  geometry = new THREE.BufferGeometry();

  geometry.setAttribute(
    'position',
    new THREE.BufferAttribute(new Float32Array([0.55, 6.98, 0, 0.59, 6.68, 0, 0.64, 5.48, 0, 0.64, 5.78, 0, 0.64, 6.08, 0, 0.65, 5.18, 0, 0.66, 6.38, 0, 0.69, 4.88, 0, 0.71, 4.58, 0, 0.75, 4.28, 0, 0.83, 3.98, 0, 0.86, 3.68, 0, 0.91, 3.38, 0, 0.99, 3.08, 0, 1.12, 2.78, 0, 1.22, 2.48, 0, 1.35, 2.18, 0, 1.48, 1.88, 0, 1.66, 1.58, 0, 1.79, 1.28, 0, 2, 0.98, 0, 2.2, 0.68, 0, 2.45, 0.38, 0, 2.78, 0.08, 0, 3.03, -0.22, 0, 3.23, -0.52, 0, 3.39, -0.82, 0, 3.51, -1.12, 0, 3.96, -1.42, 0, 4.35, -1.72, 0, 4.51, -2.02, 0, 5.14, -2.02, 0, 5.42, -1.72, 0, 5.95, -1.42, 0, 6.35, -1.12, 0, 6.68, -0.82, 0, 7.02, -0.52, 0, 7.47, 1.88, 0, 7.47, 2.48, 0, 7.48, 2.18, 0, 7.48, 2.78, 0, 7.54, 1.58, 0, 7.56, -0.22, 0, 7.7, 3.08, 0, 7.73, 1.28, 0, 7.81, 3.38, 0, 7.83, 0.98, 0, 7.87, 3.68, 0, 7.92, 0.08, 0, 7.95, 0.68, 0, 7.98, 0.38, 0, 8.07, 3.98, 0, 8.15, 4.28, 0, 8.22, 4.58, 0, 8.31, 4.88, 0, 8.35, 5.18, 0, 8.38, 5.48, 0, 8.62, 5.78, 0, 8.77, 6.08, 0, 8.99, 6.38, 0, 9.4, 6.68, 0, 9.82, 6.98, 0]), 3));
  geometry.setAttribute(
    'normal',
    new THREE.BufferAttribute(new Float32Array([0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1]), 3));
  geometry.setIndex([38, 43, 39, 38,...