Fiber
@react-three/fiber
A React renderer for Threejs
Utilities
react
renderer
fiber
three
threejs
@react-three/fiber
Utilities
javascript
npm
frontend
Stars
33k
Weekly
0
Open issues
13
Bundle
~60 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
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 13 open issues on GitHub