From 54aca89714cfdb7d8f88f52cc9fd971aa94bc4a1 Mon Sep 17 00:00:00 2001 From: Pavan Shinde Date: Wed, 29 Apr 2026 16:03:15 +0530 Subject: [PATCH] docs: use three addons loader imports in hooks examples --- docs/API/hooks.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/API/hooks.mdx b/docs/API/hooks.mdx index 91b3224227..6186058627 100644 --- a/docs/API/hooks.mdx +++ b/docs/API/hooks.mdx @@ -170,7 +170,7 @@ This hook loads assets and suspends for easier fallback- and error-handling. It ```jsx import { Suspense } from 'react' import { useLoader } from '@react-three/fiber' -import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader' +import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js' function Model() { const result = useLoader(GLTFLoader, '/model.glb') @@ -202,7 +202,7 @@ function App() { You can provide a callback as the third argument if you need to configure your loader: ```jsx -import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader' +import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js' useLoader(GLTFLoader, url, (loader) => { const dracoLoader = new DRACOLoader()