Counselllor / Counsellor-Web

Prefer that non-interactive, visible elements (such as <div>) that have click handlers use the role attribute JS-0765
Anti-pattern
Minor
1 occurrence in this check
Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
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>