Reagieren Sie drei Faser -Set -Cursorzeiger
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