Counselllor / Counsellor-Web

Prefer to accompany onClick with some elements JS-0746
Anti-pattern
Minor
1 occurrence in this check
Visible, non-interactive elements with click handlers must have at least one keyboard listener
35    const startIndex = (currentPage - 1) * contributorsPerPage;
36    const endIndex = startIndex + contributorsPerPage;
37    return contributors.slice(startIndex, endIndex).map(contributor => (
38      <div key={contributor.login} className="contributor-card" onClick={() => handleProfileClick(contributor.login)}>39        <img src={contributor.avatar_url} alt={contributor.login} />
40        <div className="contributor-info">
41          <h3>{contributor.login}</h3>