Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const App = () => {
const sectionRefs = [useRef(null), useRef(null), useRef(null)];
const activeSection = useScrollSpy({
sectionElementRefs: sectionRefs,
offsetPx: -80,
});
return (
<div>
<header>
<img alt="logo" src="{logo}">
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
</header></div>