UNPKG

r3f-template

Version:

CLI to scaffold React Three Fiber templates with or without physics( Rapier )

10 lines (7 loc) 224 B
import suzanne from "/suzanne.glb?url"; import { useGLTF } from "@react-three/drei"; const Suzanne = () => { const { scene } = useGLTF(suzanne); return <primitive object={scene} />; }; export default Suzanne;