Move camera to face an object in React Three Fiber!

If you are using r3f the easiest way to do it is through a react-three/drei helper that uses yomotsus camera controls
.

look at the codesandbox provided, there is a method called setPosition(x, y, z).