Skip to content

Conversation

yashhhYB
Copy link

Summary

This PR improves the IssueList component in fixtures/dom/src/components/IssueList.js by addressing the convoluted link rendering logic, adding type validation, and ensuring accessibility best practices.

Changes:

Refactored link generation: Replaced the .reduce() method with .map() and React.Fragment for clearer, more performant code that avoids array concatenation.
Added PropTypes: Introduced PropTypes validation for the issues prop to accept either a string or an array of strings.
Accessibility improvements: Maintained unique keys for list items and ensured links have proper text content (issue numbers).
ctrb

How did you test this change?

The component renders correctly for both string and array inputs. Tests in the fixtures/dom directory fail due to React build configuration issues unrelated to this change, but the code follows React best practices and is syntactically correct.

@meta-cla meta-cla bot added the CLA Signed label Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant