supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.

Home Page:https://ngokevin.github.io/aframe-react-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question]: Bypass the DOM without using Entity / Scene components?

setsun opened this issue · comments

Hi there, first off great work on both a-frame and aframe-react! I just finished up a project with both libraries and it's miles ahead of what's possible in React VR or other solutions I tried. Now to the question I have...

Having used React and A-Frame together, I found that I prefer just using the a-entity, a-scene, a-box, and other primitives directly in React rather than using the Entity and Scene components that are provided. My preference is mostly because the A-Frame documentation examples are written without aframe-react examples.

I wonder if it's possible to bypass the DOM without having to use the Entity / Scene components? Though admittedly this might be more difficult / messy if we have to mess around with React's internals to get that behavior.