UNPKG
r3f-template
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
CLI to scaffold React Three Fiber templates with or without physics( Rapier )
r3f-template
/
templates
/
js
/
basic
/
src
/
Components
/
Suzanne.jsx
10 lines
(7 loc)
•
224 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
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
;