ObjectPicking.js adapts this three.js tutorial on object picking for React. this project also updates some three.js methods which are now outdated.
PointRaycasting.js adapts this three.js raycasting example for React.
to switch easily between tutorials, replace the App component with ToggleView in index.js. using ToggleView you can easily explore both tutorials, though this may slow down your system. alternatively, replace the components in App.js and recompile.
to start this project on your device, download or clone this repository and in the project directory, run:
this runs the app in the development mode.
open http://localhost:3000 to view it in the browser.