Use entity/primitive from Aframe with React just like a normal component works in React.
- Install Aframe React Component as Depedencies
npm i aframe-react-component
- Install Aframe, since it's depends on aframe
npm i aframe
- Import the components in your React projects
import{Scene,Camera,Box}from'aframe-react-component';///return(<Scenevr-mode-ui={false}><Cameraposition={[0,0,0]}/><Boxposition={[0,0,5]}/></Scene>);