How priyanshu-752/cube-xr works
Project type and purpose
• This is a frontend‐only, single‐page React application bootstrapped with Vite.
• Purpose: provide a minimal React + Vite template with HMR support, ESLint rules, and two example component families (“cube” and “xr-cube”).
File structure
• Top-level files:
• index.html – the HTML entry point
• package.json / package-lock.json – dependency and script definitions
• .eslintrc.cjs – linting rules
• vite.config.js – Vite configuration (React plugin for HMR)
• src directory:
• main.jsx – initializes the React app and mounts it into index.html
• App.jsx + App.css – root component and styling
• index.css – global styles
• components/ – two feature folders:
– cube/ (CubeContainer → Cube)
– xr-cube/ (XrCubeContainer → XrCube)
README for additional insights
• Confirms use of Vite + React plugin (either Babel-based or SWC for Fast Refresh).
• No backend or external API, purely client‐side.
Detail
• Step in the build & serve pipeline
• Component hierarchy down to Cube/XrCube