JSFiddle - React, Tailwind, and code Playground

by AidanYoung

HTML

<html>
  <head>
    <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
    <script src="https://unpkg.com/aframe-textarea-component/dist/aframe-textarea-component.min.js"></script>

  </head>
  <body>
    <a-scene>
    <button style="position: fixed; margin-top: 0px; z-index: 1000000;" onclick="updateText()">
    Update text
    </button>
      <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
      <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
      <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
      <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>
      <a-sky color="#ECECEC"></a-sky>
                    <a-entity position="1.5 0 -2" scale="3.8 6.9s 4.1" textarea="cols: 70; rows: 10; text: this is a 
multiline textarea; backgroundColor: transparent; color: #222; disabled: false;" rotation="0 0 0"></a-entity>
</a-scene>
  </body>
</html>

JavaScript

let txtvalue = "hello world";

function updateText() {

}