Skip to content

Instantly share code, notes, and snippets.

@peyloride
Created March 8, 2019 08:33
Show Gist options
  • Save peyloride/630e6ecbd2fd2e9e5500249670f6b452 to your computer and use it in GitHub Desktop.
Save peyloride/630e6ecbd2fd2e9e5500249670f6b452 to your computer and use it in GitHub Desktop.
// Get the DOM element to attach to
const container = document.querySelector('#container');
// Attach the renderer-supplied
// DOM element.
container.appendChild(renderer.domElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment