---
name: dev-r3f-r3f-fundamentals
description: React Three Fiber core patterns for scene composition and game loop
category: r3f
---
# R3F Fundamentals
> "Declarative 3D – compose scenes like React components."
## When to Use This Skill
Use when:
- Setting up a new R3F scene
- Creating 3D components
- Implementing game loops with `useFrame`
- Managing canvas and renderer settings
## Quick Start
```tsx
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
function App() {
return (
);
}
```
## Decision Framework
| Need | Use |
| --------------- | --------------------------------------------- |
| Basic 3D scene | `