supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

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

Closed setsun closed 6 years ago

setsun commented 7 years ago

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.