This is an example project of using MindAR in React
The react components are:
src/mindar-viewer
(AFRAME version), andsrc/mindar-three-viewer
(ThreeJS version).
Everything else are created from create-react-app
, and they are irrelevant.
- how to import MindAR as a npm package
- how to create a React component for MindAR
> npm install
> npm run start
OR for HTTPS (so you can test on mobile devices connected in local network)
> npm run start-https