Last active
December 26, 2022 15:30
-
-
Save zolotyh/cefbc7458fda881ded04abcaa8ca0021 to your computer and use it in GitHub Desktop.
This file contains 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
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