Last active
December 5, 2023 10:55
-
-
Save AgentPrus/ecd2f8d4664ab8df8329c35f899576d4 to your computer and use it in GitHub Desktop.
Keyboard navigation for list in React
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
const List = () => { | |
return ( | |
<ul role="list" className="divide-y divide-gray-100"> | |
{directory.map((person, index) => ( | |
<ListItems | |
{...person} | |
key={person.email} | |
/> | |
))} | |
</ul> | |
); | |
}; | |
export default List; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment