Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React & D3 Starter

Public visualization

React & D3 Starter

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed