From 972afe467373a6e1b33fbbc12d5eacbe640c9511 Mon Sep 17 00:00:00 2001 From: Kenny Date: Tue, 24 Sep 2024 22:59:02 +0800 Subject: [PATCH] Update Camera.md --- docs/Camera.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Camera.md b/docs/Camera.md index 8c8a01763..2895c1871 100644 --- a/docs/Camera.md +++ b/docs/Camera.md @@ -13,7 +13,7 @@ Controls the perspective from which the user sees the map. To use imperative methods, pass in a ref object: ```tsx -const camera = useRef<Camera>(null); +const camera = useRef(null); useEffect(() => { camera.current?.setCamera({ @@ -22,7 +22,7 @@ useEffect(() => { }, []); return ( - <Camera ref={camera} /> + ); ```