Library
26.0k

React Three Fiber

A React renderer for Three.js. Build 3D scenes with components.

#3D#React#Threejs#WebGL

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 useFrame for animation loops and useThree for scene context.
  • Ecosystem: Integration with drei for helpers and cannon for physics.

Use Cases

  • Building interactive 3D portfolios.
  • Web-based product configurators.
  • Virtual showrooms and game UI.