Drei
@react-three/drei
useful add-ons for react-three-fiber
Utilities
react
three
threejs
react-three-fiber
@react-three/drei
Utilities
javascript
npm
frontend
open source
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @react-three/dreiCode 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 gsimone
- 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
- 0 open issues on GitHub