Skip to content

jadeshenker/threejs-with-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three.js in React

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:

npm install
npm run start

this runs the app in the development mode.
open http://localhost:3000 to view it in the browser.

About

react app with user interaction using plain three.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published