Compose Multiple 3D Objects into one Component in React VR
One of React's core concepts is component composition. React VR is no different in that regard. You can take an existing component and wrap it into a new React component.
We'll do so by creating a
<Tree/> component out of simple shapes, a
<Cylinder/> trunk and a
<Sphere/> tree crown. When making our
<Tree/> we'll also see how the position of shapes is relative to the
<View/> and learn how we can leverage this superpower!