Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

React Three Fiber

free

React renderer for three.js: build 3D scenes as JSX components with hooks.

by Poimandres GitHub npm
visit
React Three Fiber website

Try these

three.js

The standard WebGL and WebGPU 3D engine: scenes, cameras, materials, loaders.

Spline (react-spline)

Embed 3D scenes designed in the Spline editor as a React component.

drei

Ready-made helpers for React Three Fiber: controls, loaders, environments, text, shaders.

Motion

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

Looks that pick it

For your agent

Install
npm i three @react-three/fiber && npm i -D @types/three
Use it for
  • interactive 3D hero objects in a React or Next.js landing page
  • product configurators where React state drives materials and parts
  • scroll-driven 3D storytelling sections
Skip it when
  • a decorative gradient or noise background: use paper-shaders, no 3D stack needed
  • a designer owns the scene and you only embed it: use spline
  • non-React stacks: use three directly (or TresJS for Vue)
What's inside20 free
  • Canvas
  • three.js JSX elements (mesh, geometries, materials, lights)
  • attach
  • Events (onClick, onPointerOver...)
  • useThree
  • useFrame
  • useLoader
  • useGraph
  • extend
  • createPortal
  • createRoot
  • invalidate
  • advance
  • addEffect / addAfterEffect / addTail
  • applyProps
  • useInstanceHandle
  • WebGPU renderer
  • On-demand rendering
  • Instancing
  • React Native
Facts
Frameworks
react, react-native
Styling
unstyled
Weight
large
Accessibility
weak
Maturity
established
License
MIT
Price
Free
Pairs with
Alternatives
Compare React Three Fiber with its alternatives
import { Canvas, useFrame } from '@react-three/fiber'
import { useRef } from 'react'
import type { Mesh } from 'three'

function Knot() {
  const ref = useRef<Mesh>(null!)
  useFrame((_, dt) => { ref.current.rotation.y += dt * 0.3 })
  return (
    <mesh ref={ref}>
      <torusKnotGeometry args={[0.6, 0.2, 128, 16]} />
      <meshStandardMaterial color="#e5e5e5" roughness={0.3} />
    </mesh>
  )
}

<Canvas dpr={[1, 2]} camera={{ position: [0, 0, 3] }}>
  <ambientLight intensity={0.5} />
  <directionalLight position={[2, 2, 2]} />
  <Knot />
</Canvas>
Visit