Last active
October 17, 2021 17:21
-
-
Save gustavofabro/037f980d82cbf7f6efa63f7310b4f4c8 to your computer and use it in GitHub Desktop.
Estrutura HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function App() { | |
const loadingElementRef = useRef<HTMLDivElement>(null); | |
// Restante do código | |
return ( | |
<main className="app"> | |
<div className="list"> | |
{data.map(item => ( | |
<div key={item.id} className="item">{`Item ${item.id + 1}`}</div> | |
))} | |
<div ref={loadingElementRef}></div> | |
</div> | |
</main> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment