Fiber
@react-three/fiber
A React renderer for Threejs
Utilities
react
renderer
fiber
three
threejs
@react-three/fiber
Utilities
javascript
npm
frontend
Stars
32k
Weekly
4.7M
Open issues
72
Bundle
~25 kB
Installation
npm install @react-three/fiberCode example
import { Canvas } from "@react-three/fiber";
export function Example() {
return (
<Canvas>
<ambientLight />
<mesh>
<boxGeometry />
<meshStandardMaterial color="orange" />
</mesh>
</Canvas>
);
}Pros & cons
Pros
- Actively maintained by Paul Henschel
- 4.7M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 72 open issues on GitHub