Overview
React Three Fiber (R3F) is a React renderer for Three.js. It allows you to build your Three.js scenes using declarative components, leveraging React’s reconciliation and lifecycle management.
Features
- Declarative Code: Use
<mesh>,<boxGeometry>, and<meshStandardMaterial>instead of imperative JS. - Hooks API: Standard hooks like
useFramefor animation loops anduseThreefor scene context. - Ecosystem: Integration with
dreifor helpers andcannonfor physics.
Use Cases
- Building interactive 3D portfolios.
- Web-based product configurators.
- Virtual showrooms and game UI.