r3f-component-patterns
Installation
SKILL.md
React Three Fiber Component Patterns
When to Use
Use this skill when:
- Building reusable 3D components with R3F
- Structuring React Three.js applications
- Implementing component composition
- Creating custom R3F hooks
- Optimizing React component performance
Core Principles
- Declarative: Define 3D scenes with JSX
- Reusable: Create component libraries
- Composable: Build complex scenes from simple parts
- Type-Safe: Full TypeScript support
- Performance: Use React.memo and useMemo
- Props-Driven: Configure via props, not imperative code