function ScrollToSection() { const sectionRef = useRef(null); const scrollToSection = () => { sectionRef.current.scrollIntoView({ behavior: 'smooth' }); }; return (
{/* ... beaucoup de contenu ... */}

Section cible

); }