Skip to main content
100%

React & D3 Starter

✓ Published0🌍 Public
MMichael Bergerson
Last edited Jun 8, 2022
Created on Jun 8, 2022
Forked from React & D3 Starter

A rotating torus knot rendered in three.js WebGL demonstrates a React component lifecycle. The App component instantiates a Three.js scene, perspective camera, and WebGL renderer, appending the canvas to a ref-mounted div. A `MeshPhongMaterial` with a neon specular highlight receives directional lighting, while the animation loop increments rotation on both axes. The example integrates React with imperative Three.js setup, using `useEffect` for scene creation and cleanup.

AI-generated description

messing around in three.js

MIT Licensed

Similar vizzes