This project was bootstrapped with Create React App (CRA) v3 site and then BabylonJS was added. For TypeScript
npx create-react-app babylonjs-app --typescriptBabylonJS was added using 'react-babylonjs'
yarn add react-babylonjs
yarn add react-reconciler
yarn add @babylonjs/core
yarn add @babylonjs/gui
yarn add @babylonjs/loadersAll of the code for the site is in /src/App.tsx
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
View live demo