Skip to content

Instantly share code, notes, and snippets.

@zolotyh
Last active December 26, 2022 15:30
Show Gist options
  • Save zolotyh/cefbc7458fda881ded04abcaa8ca0021 to your computer and use it in GitHub Desktop.
Save zolotyh/cefbc7458fda881ded04abcaa8ca0021 to your computer and use it in GitHub Desktop.
import React from "react";
type Props = {
items: {
id: string;
name: string;
}[];
};
// items.length = 100000
export const List = ({ items }: Props) => {
return (
<ul>
{items.map((item) => (
<li>item.name</li>
))}
</ul>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment