React Three Fiber Set Cursor Pointer

const [hovered, setHovered] = useState(false);

useEffect(() => {
  document.body.style.cursor = hovered ? 'pointer' : 'auto'
  return ()=> document.body.style.cursor = 'auto';
}, [hovered])

return (
  <mesh
    onPointerOver={() => setHovered(true)}
    onPointerOut={() => setHovered(false)} />
KostasX