Just starting out with Three.js and wanted to test displaying the Stats.js in a small scenario.
Decided not to use modules for now, but followed similar code structure as in the examples:
var stats = new Stats();
var renderer = new THREE.WebGLRenderer({antialias: true});
container.appendChild(stats.domElement);
renderer.setSize(window.innerWidth,window.innerHeight);
renderer.setPixelRatio( window.devicePixelRatio );
container.appendChild(renderer.domElement);
However, the Stats appear to be displayed in a different canvas (white space on top) and I'm unsure where I made a mistake. Any ideas?
Appreciate any assistance!