Skip to content

Commit

Permalink
Merge pull request #12 from krsbx/releases
Browse files Browse the repository at this point in the history
chore: update versions
  • Loading branch information
krsbx authored Jun 25, 2022
2 parents bba87ca + 2e45be5 commit cf15669
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions README.md
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>
);
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aframe-react-component",
"version": "0.1.0beta1a",
"version": "0.1.0beta2a",
"main": "dist/index.js",
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -36,7 +36,7 @@
"typescript": "^4.6.3",
"vite": "^2.9.9"
},
"description": "An Frame Component for React",
"description": "An Aframe Component for React",
"repository": {
"type": "git",
"url": "git+https://github.com/krsbx/aframe-react-component.git"
Expand Down

0 comments on commit cf15669

Please sign in to comment.