Skip to content

Instantly share code, notes, and snippets.

@AgentPrus
Last active December 5, 2023 10:55
Show Gist options
  • Save AgentPrus/ecd2f8d4664ab8df8329c35f899576d4 to your computer and use it in GitHub Desktop.
Save AgentPrus/ecd2f8d4664ab8df8329c35f899576d4 to your computer and use it in GitHub Desktop.
Keyboard navigation for list in React
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