Hey! I'm on a mission to make 100 React.js projects. Please follow my dev.to profile or my twitter for updates and feel free to reach out if you have questions. Thanks for your support!
For this project I followed Daniel Bark's awesome tutorial called "Building a 3D world in React with Three JS" up to about the 10 minute mark when he introduces physics. The reason I stopped is that there were breaking changes in the npm cannon library since he made the video as well.
Rather than creating copies of objects with the
new keyword and adding them to the scene with an add function, we simply create a JSX function and include them as components within the canvas.
If you like projects like this and want to stay up to date with more, check out my Twitter @jwhubert91, I follow back! See you tomorrow for another project.