Hi,
I am using threejs in react without any extra library. I want to know is it possible to pass react components to CSS3DSprite instead of a dom element.
To clarify this is how I am doing it right now:
const element = document.createElement("div");
element.classList.add("hover-test");
element.style.width = "50px";
element.style.height = "50px";
element.style.opacity = 0.5;
element.style.background = new Color(Math.random() * 0xffffff).getStyle();
const object = new CSS3DSprite(element);
Is it possible to pass react component in CSS3DSprite constructor. I am creating a 360 panorama experience with hotspots if this is somehow possible than I can create a hotspot component and then just pass the hotspot position in props when adding it to CSS3DSprite constructor.
Sorry if my explanation is not clear.