aframe-react-component
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Aframe React Component

Use entity/primitive from Aframe with React just like a normal component works in React.

How to start

  • 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 (
  <Scene vr-mode-ui={false}>
    <Camera position={[0, 0, 0]} />
    <Box position={[0, 0, 5]} />
  </Scene>
);

Dependencies (1)

Dev Dependencies (17)

Package Sidebar

Install

npm i aframe-react-component

Weekly Downloads

36

Version

0.1.1

License

MIT

Unpacked Size

41.1 kB

Total Files

72

Last publish

Collaborators

  • krsbx