Skip to content

Instantly share code, notes, and snippets.

@biancadragomir
Created October 15, 2021 15:53
Show Gist options
  • Save biancadragomir/bbf45422f9a45f5d390d107f1a24bf92 to your computer and use it in GitHub Desktop.
Save biancadragomir/bbf45422f9a45f5d390d107f1a24bf92 to your computer and use it in GitHub Desktop.
import React from 'react';
const INFINITE_SCROLL_ID = "infiniteScrollId";
const Root = () => {
return <Grid
container
direction="column"
id={INFINITE_SCROLL_ID}
onScroll={onScroll}
>
{renderContent()}
</Grid>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment