-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from krsbx/releases
chore: update versions
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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 | ||
|
||
```js | ||
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> | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters