Adds stats to document.body. It takes over the render-loop!

  showPanel={0} // Start-up panel (default=0)
  className="stats" // Optional className to add to the stats container dom element
  {...props} // All stats.js props are valid

You can choose to mount Stats to a different DOM Element - for example, for custom styling:

const node = useRef(document.createElement('div'))

useEffect(() => { = 'test'

  return () => document.body.removeChild(node.current)
}, [])

return <Stats parent={parent} />