Skip to content

Instantly share code, notes, and snippets.

@3nvi
Created May 1, 2021 20:44
Show Gist options
  • Save 3nvi/0ca4550a8d188a286253e512564b993c to your computer and use it in GitHub Desktop.
Save 3nvi/0ca4550a8d188a286253e512564b993c to your computer and use it in GitHub Desktop.
import Defer from './Defer';
import Card from './Cefer';
const Component = ({ items }) => {
return (
<Defer chunkSize={5}>
{items.map(item => <Card key={item.id} item={item} />)}
</Defer>
)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment