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} /> + ); ```